summaryrefslogtreecommitdiff
path: root/src/parser.c
diff options
context:
space:
mode:
authorAbhinav <abhinav.prsai@gmail.com>2025-06-02 11:27:45 +0100
committerAbhinav <abhinav.prsai@gmail.com>2025-06-02 11:27:45 +0100
commitfd56af29cc5ff5dfe8896508a1baec2fe9b3bd7a (patch)
tree3001ef268664a3f627dfc101fcc53376bd3e1663 /src/parser.c
parenteaeffa93af07daa50844533e8d9fcb8b8291676c (diff)
added cursor warping
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/parser.c b/src/parser.c
index f969b1d..ec53cc5 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -230,6 +230,14 @@ found:;
cfg->new_win_focus = False;
}
}
+ else if (!strcmp(key, "warp_cursor")) {
+ if (!strcmp(rest, "true")) {
+ cfg->warp_cursor = True;
+ }
+ else {
+ cfg->warp_cursor = False;
+ }
+ }
else if (!strcmp(key, "master_width")) {
float mf = (float)atoi(rest) / 100.0f;
for (int i = 0; i < MAX_MONITORS; i++) {