diff options
author | uint23 <[email protected]> | 2025-04-21 18:55:06 +0100 |
---|---|---|
committer | uint23 <[email protected]> | 2025-04-21 18:55:06 +0100 |
commit | 94e37e2eea875928a56d00f6c664c0c3485ed1b7 (patch) | |
tree | f354505561d69a11bcd79597034a8285c26c1ba2 /src/defs.h | |
parent | d6ce3bb17489efa982717196d1ccf3f325bc0012 (diff) |
Added: Swapping windows with the mouse
added swap with mouse ability.
hold mod + shift and drag around.
Diffstat (limited to 'src/defs.h')
-rw-r--r-- | src/defs.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -9,7 +9,7 @@ #define ulong unsigned long #define u_char unsigned char -#define SXWM_VERSION "sxwm ver. 1.0.0" +#define SXWM_VERSION "sxwm ver. 1.1.0" #define SXWM_AUTHOR "(C) Abhinav Prasai 2025" #define SXWM_LICINFO "See LICENSE for more info" @@ -70,7 +70,13 @@ void moveto_ws9(void) { move_to_workspace(8); update_net_client_list(); }\ #define MAXCLIENTS 99 #define MAXGAPS 100 -enum { DRAG_NONE, DRAG_MOVE, DRAG_RESIZE } drag_mode = DRAG_NONE; +typedef enum { + DRAG_NONE, + DRAG_MOVE, + DRAG_RESIZE, + DRAG_SWAP +} DragMode; + typedef void (*EventHandler)(XEvent *); typedef union { |