summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2021-05-14 20:41:23 -0400
committerJakob Kaivo <jkk@ung.org>2021-05-14 20:41:23 -0400
commit2a88be277f569ef6bcd3333f15a25aaf705099df (patch)
tree9312eabf4de3af358a0d8bd3cbe9e12884dcec97
parent2bd0c9d971826d7b8247f4c3970a18429dfdd758 (diff)
warp pointer properly if previous focus was rootxnext
-rw-r--r--xnext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xnext.c b/xnext.c
index e6b6002..f9072bf 100644
--- a/xnext.c
+++ b/xnext.c
@@ -143,7 +143,7 @@ int main(int argc, char *argv[])
qsort(list, nwin, sizeof(*list), compar);
if (focused == PointerRoot || focused == None) {
- return switch_to(dpy, focused, list[previous ? nwin - 1 : 0]);
+ return switch_to(dpy, root, list[previous ? nwin - 1 : 0]);
}
for (size_t i = 0; i < nwin; i++) {