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
No known key found for this signature in database
GPG key ID: E538897EE11B9624

2
dwl.c
View file

@ -1152,7 +1152,7 @@ focusclient(Client *c, int lift)
return; return;
} else { } else {
Client *w; 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++) for (i = 0; i < 4; i++)
wlr_scene_rect_set_color(w->border[i], bordercolor); wlr_scene_rect_set_color(w->border[i], bordercolor);