From fd56af29cc5ff5dfe8896508a1baec2fe9b3bd7a Mon Sep 17 00:00:00 2001 From: Abhinav Date: Mon, 2 Jun 2025 11:27:45 +0100 Subject: added cursor warping --- src/parser.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/parser.c') 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++) { -- cgit v1.2.3