summaryrefslogtreecommitdiff
path: root/src/sxwm.c
diff options
context:
space:
mode:
authorAbhinav Prasai <abhinav.prsai@gmail.com>2025-10-12 18:47:42 +0100
committerAbhinav Prasai <abhinav.prsai@gmail.com>2025-10-12 18:47:42 +0100
commit867f67181098617d863170b537ff9cd772d2f22b (patch)
treedfc5824bfb312442ec54b02318d408d954be4c21 /src/sxwm.c
parent9c62bc37848910476c243eec7c6d8c99c8d4751c (diff)
fix fullscreen programs wont focus on monitor switch
Diffstat (limited to 'src/sxwm.c')
-rw-r--r--src/sxwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sxwm.c b/src/sxwm.c
index 4f902de..9781cb2 100644
--- a/src/sxwm.c
+++ b/src/sxwm.c
@@ -649,7 +649,7 @@ void focus_next_mon(void)
/* 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) {
- if (c->mon == target_mon && c->mapped && !c->fullscreen) {
+ if (c->mon == target_mon && c->mapped) {
target_client = c;
break;
}
@@ -681,7 +681,7 @@ void focus_prev_mon(void)
/* 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) {
- if (c->mon == target_mon && c->mapped && !c->fullscreen) {
+ if (c->mon == target_mon && c->mapped) {
target_client = c;
break;
}