summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dwl.c4
-rw-r--r--patches/client-opacity-focus/fix-xwayland.patch3
2 files changed, 5 insertions, 2 deletions
diff --git a/dwl.c b/dwl.c
index 848d86f..691d4f2 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1332,6 +1332,7 @@ createnotify(struct wl_listener *listener, void *data)
c = toplevel->base->data = ecalloc(1, sizeof(*c));
c->surface.xdg = toplevel->base;
c->bw = borderpx;
+
/* Set default opacity*/
c->opacity_unfocus = default_opacity_unfocus;
c->opacity_focus = default_opacity_focus;
@@ -3596,9 +3597,10 @@ createnotifyx11(struct wl_listener *listener, void *data)
c->type = X11;
c->bw = client_is_unmanaged(c) ? 0 : borderpx;
+ /* Set default opacity*/
c->opacity_unfocus = default_opacity_unfocus;
c->opacity_focus = default_opacity_focus;
- c->opacity = default_opacity_focus;
+ c->opacity = default_opacity_unfocus;
/* Listen to the various events it can emit */
LISTEN(&xsurface->events.associate, &c->associate, associatex11);
diff --git a/patches/client-opacity-focus/fix-xwayland.patch b/patches/client-opacity-focus/fix-xwayland.patch
index 4767842..01a5e98 100644
--- a/patches/client-opacity-focus/fix-xwayland.patch
+++ b/patches/client-opacity-focus/fix-xwayland.patch
@@ -6,9 +6,10 @@ index f00ec28..abf9dd1 100644
c->type = X11;
c->bw = client_is_unmanaged(c) ? 0 : borderpx;
++ /* Set default opacity*/
+ c->opacity_unfocus = default_opacity_unfocus;
+ c->opacity_focus = default_opacity_focus;
-+ c->opacity = default_opacity_focus;
++ c->opacity = default_opacity_unfocus;
+
/* Listen to the various events it can emit */
LISTEN(&xsurface->events.associate, &c->associate, associatex11);