remove unneeded check in focusclient()

This commit is contained in:
Leonardo Hernández Hernández 2022-06-16 15:36:27 -05:00
parent 8076b47cc6
commit 2ef5abfb72
Failed to generate hash of commit

2
dwl.c
View file

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