zmen

Owner: IIIlllIIIllI URL: git@git.0x00nyx.xyz:seb/zmen.git

change app -> zmen for clarity, re-work spawn/launch semantics and drop /bin/sh completely.

Commit 610a403e2bcbce3c60350c202c40c493894a259d by IIIlllIIIllI <seb.michalk@gmail.com> on 2025-12-19 13:17:35 +0100
diff --git a/src/main.zig b/src/main.zig
index aae5e2f..c8e0aaf 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -85,9 +85,6 @@ const zmen = struct {
         const atom_window_type_cookie = c.xcb_intern_atom(conn, 0, 19, "_NET_WM_WINDOW_TYPE");
         const atom_window_type_dialog_cookie = c.xcb_intern_atom(conn, 0, 27, "_NET_WM_WINDOW_TYPE_DIALOG");
         const atom_window_type_dock_cookie = c.xcb_intern_atom(conn, 0, 24, "_NET_WM_WINDOW_TYPE_DOCK");
-        const atom_state_cookie = c.xcb_intern_atom(conn, 0, 13, "_NET_WM_STATE");
-        const atom_state_above_cookie = c.xcb_intern_atom(conn, 0, 19, "_NET_WM_STATE_ABOVE");
-        const atom_state_sticky_cookie = c.xcb_intern_atom(conn, 0, 20, "_NET_WM_STATE_STICKY");
 
         const atom_window_type_reply = c.xcb_intern_atom_reply(conn, atom_window_type_cookie, null);
         const atom_window_type = atom_window_type_reply.*.atom;
@@ -101,24 +98,9 @@ const zmen = struct {
         const atom_window_type_dock = atom_window_type_dock_reply.*.atom;
         c.free(atom_window_type_dock_reply);
 
-        const atom_state_reply = c.xcb_intern_atom_reply(conn, atom_state_cookie, null);
-        const atom_state = atom_state_reply.*.atom;
-        c.free(atom_state_reply);
-
-        const atom_state_above_reply = c.xcb_intern_atom_reply(conn, atom_state_above_cookie, null);
-        const atom_state_above = atom_state_above_reply.*.atom;
-        c.free(atom_state_above_reply);
-
-        const atom_state_sticky_reply = c.xcb_intern_atom_reply(conn, atom_state_sticky_cookie, null);
-        const atom_state_sticky = atom_state_sticky_reply.*.atom;
-        c.free(atom_state_sticky_reply);
-
         const window_types = [_]c.xcb_atom_t{ atom_window_type_dialog, atom_window_type_dock };
         _ = c.xcb_change_property(conn, c.XCB_PROP_MODE_REPLACE, window, atom_window_type, c.XCB_ATOM_ATOM, 32, 2, &window_types);
 
-        const window_states = [_]c.xcb_atom_t{ atom_state_above, atom_state_sticky };
-        _ = c.xcb_change_property(conn, c.XCB_PROP_MODE_REPLACE, window, atom_state, c.XCB_ATOM_ATOM, 32, 2, &window_states);
-
         _ = c.xcb_change_property(conn, c.XCB_PROP_MODE_REPLACE, window, c.XCB_ATOM_WM_TRANSIENT_FOR, c.XCB_ATOM_WINDOW, 32, 1, &screen.*.root);
 
         _ = c.xcb_set_input_focus(conn, c.XCB_INPUT_FOCUS_POINTER_ROOT, window, c.XCB_CURRENT_TIME);