mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
use the same style for urgent() and sethints()
This commit is contained in:
parent
f5d839844d
commit
79c51a4584
1 changed files with 4 additions and 4 deletions
8
dwl.c
8
dwl.c
|
@ -2642,10 +2642,11 @@ urgent(struct wl_listener *listener, void *data)
|
||||||
if (!c || c == focustop(selmon))
|
if (!c || c == focustop(selmon))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (client_surface(c)->mapped)
|
|
||||||
client_set_border_color(c, urgentcolor);
|
|
||||||
c->isurgent = 1;
|
c->isurgent = 1;
|
||||||
printstatus();
|
printstatus();
|
||||||
|
|
||||||
|
if (client_surface(c)->mapped)
|
||||||
|
client_set_border_color(c, urgentcolor);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -2825,11 +2826,10 @@ sethints(struct wl_listener *listener, void *data)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
c->isurgent = xcb_icccm_wm_hints_get_urgency(c->surface.xwayland->hints);
|
c->isurgent = xcb_icccm_wm_hints_get_urgency(c->surface.xwayland->hints);
|
||||||
|
printstatus();
|
||||||
|
|
||||||
if (c->isurgent && surface && surface->mapped)
|
if (c->isurgent && surface && surface->mapped)
|
||||||
client_set_border_color(c, urgentcolor);
|
client_set_border_color(c, urgentcolor);
|
||||||
|
|
||||||
printstatus();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue