mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
check client is mapped before setting border color
For some reason brave configured for as a wayland client triggers this code on startup and segfaults. Checking if the client is mapped fixes this, like with the previous fix for urgent border colour. References:887fde65a3
Fixes:72a7d78a1a
This commit is contained in:
parent
df131cdb78
commit
8c79f8dc15
1 changed files with 2 additions and 1 deletions
1
dwl.c
1
dwl.c
|
@ -2593,6 +2593,7 @@ urgent(struct wl_listener *listener, void *data)
|
||||||
if (!c || c == focustop(selmon))
|
if (!c || c == focustop(selmon))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (client_is_mapped(c))
|
||||||
client_set_border_color(c, urgentcolor);
|
client_set_border_color(c, urgentcolor);
|
||||||
c->isurgent = 1;
|
c->isurgent = 1;
|
||||||
printstatus();
|
printstatus();
|
||||||
|
|
Loading…
Reference in a new issue