summaryrefslogtreecommitdiffstats
path: root/dwl.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index f83cb83..4358e4b 100644
--- a/dwl.c
+++ b/dwl.c
@@ -676,6 +676,9 @@ arrangelayer(Monitor *m, struct wl_list *list, struct wlr_box *usable_area, int
wl_list_for_each(l, list, link) {
struct wlr_layer_surface_v1 *layer_surface = l->layer_surface;
+ if (!layer_surface->initialized)
+ continue;
+
if (exclusive != (layer_surface->current.exclusive_zone > 0))
continue;
@@ -4006,7 +4009,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);