summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2023-12-07 22:37:35 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2023-12-07 22:37:35 -0600
commit79c51a45841a15be9c65fd01b34b2a23e48eb423 (patch)
tree377c63057e55cc334803065a6e046f3166671c8e
parentf5d839844d1c1f9369ca55e058e91161da6929f7 (diff)
use the same style for urgent() and sethints()
-rw-r--r--dwl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dwl.c b/dwl.c
index 9219af5..ecb8a4b 100644
--- a/dwl.c
+++ b/dwl.c
@@ -2642,10 +2642,11 @@ urgent(struct wl_listener *listener, void *data)
if (!c || c == focustop(selmon))
return;
- if (client_surface(c)->mapped)
- client_set_border_color(c, urgentcolor);
c->isurgent = 1;
printstatus();
+
+ if (client_surface(c)->mapped)
+ client_set_border_color(c, urgentcolor);
}
void
@@ -2825,11 +2826,10 @@ sethints(struct wl_listener *listener, void *data)
return;
c->isurgent = xcb_icccm_wm_hints_get_urgency(c->surface.xwayland->hints);
+ printstatus();
if (c->isurgent && surface && surface->mapped)
client_set_border_color(c, urgentcolor);
-
- printstatus();
}
void