Add better icccm support

This commit is contained in:
2025-10-02 15:22:43 +01:00
parent 2eed7c1dad
commit 09eb87e1b7
4 changed files with 260 additions and 74 deletions

View File

@@ -1,29 +1,29 @@
#define XCB_KEY_PRESS 2
#define XCB_KEY_RELEASE 3
define XCB_KEY_PRESS 2
define XCB_KEY_RELEASE 3
#define XCB_BUTTON_PRESS 4
#define XCB_BUTTON_RELEASE 5
#define XCB_MOTION_NOTIFY 6
define XCB_BUTTON_PRESS 4
define XCB_BUTTON_RELEASE 5
define XCB_MOTION_NOTIFY 6
#define XCB_ENTER_NOTIFY 7
define XCB_ENTER_NOTIFY 7
#define XCB_LEAVE_NOTIFY 8 - maybe
# define XCB_LEAVE_NOTIFY 8 - maybe
#define XCB_CREATE_NOTIFY 16
define XCB_CREATE_NOTIFY 16
// treat these similarly
#define XCB_DESTROY_NOTIFY 17 // to remove from struct
#define XCB_UNMAP_NOTIFY 18 // i guess this is minimize but idk if it is icccm IconicState?
define XCB_DESTROY_NOTIFY 17 // to remove from struct
define XCB_UNMAP_NOTIFY 18 // i guess this is minimize but idk if it is icccm IconicState?
#define XCB_MAP_NOTIFY 19 // whatever im doin (dont map this is after mapping)
define XCB_MAP_NOTIFY 19 // whatever im doin (dont map this is after mapping)
#define XCB_MAP_REQUEST 20 // Actual request to map // so map the window if possible
define XCB_MAP_REQUEST 20 // Actual request to map // so map the window if possible
#define XCB_CONFIGURE_REQUEST 23 // for floats maybe
#define XCB_GRAVITY_NOTIFY 24 // similar to XCB_CONFIGURE_NOTIFY but for pos
#define XCB_RESIZE_REQUEST 25 // similar to XCB_CONFIGURE_REQUEST but for resize
#define XCB_CONFIGURE_NOTIFY 22 // prolly remove it
# define XCB_CONFIGURE_NOTIFY 22 // prolly remove it
#define XCB_PROPERTY_NOTIFY 28 // only if netwm requires so
#define XCB_CLIENT_MESSAGE 33 // only if netwm requires