commit 2aeaa927744eb33f1f141285cf1a650337bcaaae
parent 5908420399e5456b44563ce93fcd13633a2e592f
Author: cowmonk <cowmonk@based.pt>
Date: Tue, 24 Nov 2026 14:19:18 -0700
dmw: use new neuswc API
A bit of a fun tongue twister (new neu lol, but not really).
xplshn cleaned up the patches to just be a single batch including all of
our changes and plus some. Some still are left in development, but the
current changes to neuswc/neuwld are tested and should work without issue.
Please update neuwld and then neuswc to their latest commits, before
installing/updating dmw
Diffstat:
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/dmw.c b/dmw.c
@@ -307,7 +307,7 @@ arrange(struct Monitor *m)
else
swc_window_set_stacked(c->win);
c->mode = mode;
- swc_window_raise(c->win);
+ swc_window_set_z(c->win, mode == Tiled ? SWC_Z_WINDOW : SWC_Z_WINDOW + 1);
}
if (ISVISIBLE(c)) {
swc_window_show(c->win);
@@ -967,7 +967,7 @@ newwindow(struct swc_window *win)
static const struct swc_window_handler handler = {
.destroy = unmanage, .entered = entered, .title_changed = metadatachanged,
.app_id_changed = metadatachanged, .parent_changed = parentchanged,
- .size_changed = sizechanged,
+ .size_changed = sizechanged, .fullscreen = setfullscreen,
};
struct Client *c;
@@ -978,9 +978,6 @@ newwindow(struct swc_window *win)
c->mode = -1;
attach(c, selmon);
swc_window_set_handler(win, &handler, c);
-#ifdef SWC_WINDOW_FULLSCREEN_REQUEST
- swc_window_set_fullscreen_handler(win, setfullscreen);
-#endif
win->motion_throttle_ms = 1000 / MAX(1, refreshrate);
/* wait for the title and app id before matching rules for a new toplevel: */
c->pending = wl_event_loop_add_idle(loop, manage, c);