From 593cbd4fe9dbd1c860148379120f367e2a662c96 Mon Sep 17 00:00:00 2001 From: Abhinav Prasai Date: Mon, 25 Aug 2025 16:29:52 +0100 Subject: remove this useless clause --- src/sxwm.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/sxwm.c b/src/sxwm.c index f1fc94f..0c66c1d 100644 --- a/src/sxwm.c +++ b/src/sxwm.c @@ -16,7 +16,13 @@ #include #include #include + +#ifdef __linux__ #include +#else +#include +#endif + #include #include #include @@ -575,11 +581,7 @@ void focus_next_mon(void) return; } - if (focused) { - current_mon = focused->mon; - } int target_mon = (current_mon + 1) % n_mons; - /* find the first window on the target monitor in current workspace */ Client *target_client = NULL; for (Client *c = workspaces[current_ws]; c; c = c->next) { @@ -616,11 +618,7 @@ void focus_prev_mon(void) return; /* only one monitor, nothing to switch to */ } - if (focused) { - current_mon = focused->mon; - } int target_mon = (current_mon - 1 + n_mons) % n_mons; - /* find the first window on the target monitor in current workspace */ Client *target_client = NULL; for (Client *c = workspaces[current_ws]; c; c = c->next) { -- cgit v1.2.3