summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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++) {