From ce3051835797c6c7a6973a34f8cde0c8f7cad262 Mon Sep 17 00:00:00 2001 From: Chris Sobczak Date: Sun, 5 Jul 2026 13:28:25 -0700 Subject: Add comment and opacity unfoxus --- dwl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dwl.c') 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); -- cgit v1.2.3