summaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c4
1 files changed, 3 insertions, 1 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);