fix: crash when open some x11 app
(cherry picked from commit e0f531d508
)
This commit is contained in:
parent
cfc80c8f44
commit
298c6e1839
1 changed files with 1 additions and 1 deletions
2
dwl.c
2
dwl.c
|
@ -3143,7 +3143,7 @@ sethints(struct wl_listener *listener, void *data)
|
||||||
{
|
{
|
||||||
Client *c = wl_container_of(listener, c, set_hints);
|
Client *c = wl_container_of(listener, c, set_hints);
|
||||||
struct wlr_surface *surface = client_surface(c);
|
struct wlr_surface *surface = client_surface(c);
|
||||||
if (c == focustop(selmon))
|
if (c == focustop(selmon) || !c->surface.xwayland->hints)
|
||||||
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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue