From 2a88be277f569ef6bcd3333f15a25aaf705099df Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 14 May 2021 20:41:23 -0400 Subject: warp pointer properly if previous focus was root --- xnext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) { -- cgit v1.2.1