diff options
Diffstat (limited to 'dwl.c')
| -rw-r--r-- | dwl.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |
