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

commit 011a6da5cd9794307b165b7021e06e5a18f7efd0
parent 42111d36b71a149d03b8e5babe3a30c9a8118a43
Author: mcol <mcol@posteo.net>
Date:   Sat, 29 Aug 2020 00:09:07 +0100

update dimensions when resetting window

Diffstat:
Mxoop.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/xoop.c b/xoop.c @@ -98,6 +98,10 @@ void set_window_type() { void set_window_shape(uint16_t width, uint16_t height) { + + uint32_t dimensions[2] = {width, height}; + xcb_configure_window(conn, wid, XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT, dimensions); + xcb_pixmap_t pixmap = xcb_generate_id(conn); xcb_gcontext_t gc = xcb_generate_id(conn); xcb_create_pixmap(conn, 1, pixmap, wid, width, height);