From 94e37e2eea875928a56d00f6c664c0c3485ed1b7 Mon Sep 17 00:00:00 2001 From: uint23 Date: Mon, 21 Apr 2025 18:55:06 +0100 Subject: Added: Swapping windows with the mouse added swap with mouse ability. hold mod + shift and drag around. --- src/defs.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/defs.h') diff --git a/src/defs.h b/src/defs.h index 623baf3..2cdc933 100644 --- a/src/defs.h +++ b/src/defs.h @@ -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 { -- cgit v1.2.3