summaryrefslogtreecommitdiff
path: root/src/defs.h
diff options
context:
space:
mode:
authoruint23 <[email protected]>2025-04-17 00:55:22 +0100
committeruint23 <[email protected]>2025-04-17 00:55:22 +0100
commit8af0b4fbd10757abbc77ca369184312eb674905d (patch)
tree598f265127e322cb94e0b7c146bad3092170256b /src/defs.h
parent6609744d8d4e4a125b8d9e91bcd4ecaabe05f12b (diff)
resizing windwo + moving
Diffstat (limited to 'src/defs.h')
-rw-r--r--src/defs.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/defs.h b/src/defs.h
index b7f3da1..1521f0a 100644
--- a/src/defs.h
+++ b/src/defs.h
@@ -18,7 +18,9 @@
#define MAXCLIENTS 64
+enum { DRAG_NONE, DRAG_MOVE, DRAG_RESIZE } drag_mode = DRAG_NONE;
typedef void (*EventHandler)(XEvent *);
+
typedef union {
const char **cmd;
void (*fn)(void);
@@ -33,7 +35,8 @@ typedef struct {
typedef struct Client{
Window win;
- uint height, width;
+ uint x, y, h, w;
+ Bool floating;
struct Client *next;
} Client;