fix segfault when dragging chromium tabs

This commit is contained in:
Leonardo Hernández Hernández
2022-05-14 00:24:06 -05:00
parent 06d9230a96
commit 3c11ad9aa6
2 changed files with 10 additions and 7 deletions

2
dwl.c
View File

@@ -1121,7 +1121,7 @@ focusclient(Client *c, int lift)
} else {
Client *w;
struct wlr_scene_node *node = old->data;
if ((w = node->data))
if (old->role_data && (w = node->data))
for (i = 0; i < 4; i++)
wlr_scene_rect_set_color(w->border[i], bordercolor);