summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-06-16 15:36:27 -0500
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-06-16 15:36:27 -0500
commit2ef5abfb728bbf157641becfe0db4d6e3d57bca8 (patch)
tree5ccd7a13ba503c34254dfd26226e8f52a83c99e4
parent8076b47cc6eb6019d7c6fb15cc95b2ba6519da92 (diff)
remove unneeded check in focusclient()
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 8a85c79..d5bd989 100644
--- a/dwl.c
+++ b/dwl.c
@@ -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);