diff options
| author | Abhinav Prasai <abhinav.prsai@gmail.com> | 2025-08-25 16:29:52 +0100 |
|---|---|---|
| committer | Abhinav Prasai <abhinav.prsai@gmail.com> | 2025-08-28 09:54:09 +0100 |
| commit | 593cbd4fe9dbd1c860148379120f367e2a662c96 (patch) | |
| tree | 661af7439871b88215c2bebafa4f1fee2252e734 /src/sxwm.c | |
| parent | 79843b730b50672311a7191ab69cc305bfab339c (diff) | |
remove this useless clause
Diffstat (limited to 'src/sxwm.c')
| -rw-r--r-- | src/sxwm.c | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -16,7 +16,13 @@ #include <X11/X.h> #include <err.h> #include <stdio.h> + +#ifdef __linux__ #include <linux/limits.h> +#else +#include <limits.h> +#endif + #include <signal.h> #include <stdlib.h> #include <string.h> @@ -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) { |
