summaryrefslogtreecommitdiff
path: root/patches/client-opacity-focus/fix-xwayland.patch
blob: 476784280a5830c8edc45da93ac0d882eebb358b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/dwl.c b/dwl.c
index f00ec28..abf9dd1 100644
--- a/dwl.c
+++ b/dwl.c
@@ -3197,6 +3197,10 @@ createnotifyx11(struct wl_listener *listener, void *data)
 	c->type = X11;
 	c->bw = client_is_unmanaged(c) ? 0 : borderpx;
 
+	c->opacity_unfocus = default_opacity_unfocus;
+	c->opacity_focus = default_opacity_focus;
+	c->opacity = default_opacity_focus;
+
 	/* Listen to the various events it can emit */
 	LISTEN(&xsurface->events.associate, &c->associate, associatex11);
 	LISTEN(&xsurface->events.destroy, &c->destroy, destroynotify);