summaryrefslogtreecommitdiffstats
path: root/dwl.c
diff options
context:
space:
mode:
authorDreamMaoMao <2523610504@qq.com>2025-03-12 16:27:47 +0800
committerDreamMaoMao <2523610504@qq.com>2025-03-12 16:27:47 +0800
commite0f531d5087cbd1223577c77262ec7476c157088 (patch)
tree612ff0e3f380b2abc7eabe2043f3c528c33c1b12 /dwl.c
parentaa69ed81b558f74e470e69cdcd442f9048ee624c (diff)
downloaddwl-e0f531d5087cbd1223577c77262ec7476c157088.tar.gz
dwl-e0f531d5087cbd1223577c77262ec7476c157088.tar.bz2
dwl-e0f531d5087cbd1223577c77262ec7476c157088.zip
fix: crash when open some x11 app
Diffstat (limited to '')
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index ec4ca86..395b81d 100644
--- a/dwl.c
+++ b/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);