summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Sobczak <chris@sobczak.family>2026-07-05 13:21:02 -0700
committerChris Sobczak <chris@sobczak.family>2026-07-05 13:21:02 -0700
commitcd78e21371385d161324e9a86e30a8c16869c626 (patch)
treefe9c3f2720aa8f4f61a6633e663f54360354ba43
parentf81d104f5688e16ac1252c83c87edf3629606337 (diff)
parentd76d4c3cc95d919b5de57478514072730b460965 (diff)
Merge branch 'client-opacity-focus' into csobczak
Initialize opacity of x clients
-rw-r--r--dwl.c4
-rw-r--r--patches/client-opacity-focus/fix-xwayland.patch15
2 files changed, 19 insertions, 0 deletions
diff --git a/dwl.c b/dwl.c
index 025bab2..848d86f 100644
--- a/dwl.c
+++ b/dwl.c
@@ -3596,6 +3596,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);
diff --git a/patches/client-opacity-focus/fix-xwayland.patch b/patches/client-opacity-focus/fix-xwayland.patch
new file mode 100644
index 0000000..4767842
--- /dev/null
+++ b/patches/client-opacity-focus/fix-xwayland.patch
@@ -0,0 +1,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);