diff options
| author | Chris Sobczak <chris@sobczak.family> | 2026-07-05 13:28:25 -0700 |
|---|---|---|
| committer | Chris Sobczak <chris@sobczak.family> | 2026-07-05 13:28:25 -0700 |
| commit | ce3051835797c6c7a6973a34f8cde0c8f7cad262 (patch) | |
| tree | a9b6c38c0ae3ec502badd4dfa50cd68a42bf9808 /dwl.c | |
| parent | cd78e21371385d161324e9a86e30a8c16869c626 (diff) | |
Add comment and opacity unfoxus
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); |
