Loop your X cursor around the screen 👉😎👉
git clone https://mcol.xyz/code/xoop
Log | Files | Refs | README | LICENSE

commit b07a64c91f8d6b403e6e57aec18327eb23bb14df
parent 4acab7a180c48965c9ab9aa8c2301b474ccc8493
Author: mcol <mcol@posteo.net>
Date:   Sun,  9 Aug 2020 23:32:19 +0100

set _NET_WM_STATE_ABOVE

Diffstat:
Mxoop.c | 20+++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/xoop.c b/xoop.c @@ -36,7 +36,11 @@ xcb_window_t wid; void set_window_type() { - xcb_intern_atom_reply_t *wm_window_type, *wm_window_type_dock, *wm_desktop; + xcb_intern_atom_reply_t *wm_window_type, + *wm_window_type_dock, + *wm_state, + *wm_state_above, + *wm_desktop; wm_window_type = xcb_intern_atom_reply( conn, @@ -52,6 +56,20 @@ void set_window_type() { conn, XCB_PROP_MODE_REPLACE, wid, wm_window_type->atom, XCB_ATOM_ATOM, 32, 1, &wm_window_type_dock->atom ); + wm_state = xcb_intern_atom_reply( + conn, + xcb_intern_atom(conn, 0, 13, "_NET_WM_STATE"), + NULL + ); + wm_state_above = xcb_intern_atom_reply( + conn, + xcb_intern_atom(conn, 0, 19, "_NET_WM_STATE_ABOVE"), + NULL + ); + xcb_change_property( + conn, XCB_PROP_MODE_REPLACE, wid, wm_state->atom, XCB_ATOM_ATOM, 32, 1, &wm_state_above->atom + ); + wm_desktop = xcb_intern_atom_reply( conn, xcb_intern_atom(conn, 0, 15, "_NET_WM_DESKTOP"),