fix: crash when open some x11 app
This commit is contained in:
parent
aa69ed81b5
commit
e0f531d508
2
dwl.c
2
dwl.c
@ -3148,7 +3148,7 @@ sethints(struct wl_listener *listener, void *data)
|
||||
{
|
||||
Client *c = wl_container_of(listener, c, set_hints);
|
||||
struct wlr_surface *surface = client_surface(c);
|
||||
if (c == focustop(selmon))
|
||||
if (c == focustop(selmon) || !c->surface.xwayland->hints)
|
||||
return;
|
||||
|
||||
c->isurgent = xcb_icccm_wm_hints_get_urgency(c->surface.xwayland->hints);
|
||||
|
Loading…
x
Reference in New Issue
Block a user