summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dwm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dwm.c b/dwm.c
index abdaa6c..32b7fc8 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1195,7 +1195,7 @@ pointertomon(int x, int y) {
1195 for(m = mons; m; m = m->next) 1195 for(m = mons; m; m = m->next)
1196 if(INRECT(x, y, m->wx, m->wy, m->ww, m->wh)) 1196 if(INRECT(x, y, m->wx, m->wy, m->ww, m->wh))
1197 return m; 1197 return m;
1198 return mons; 1198 return selmon;
1199} 1199}
1200 1200
1201void 1201void
@@ -1758,7 +1758,7 @@ updategeom(void) {
1758 1758
1759 /* select focused monitor */ 1759 /* select focused monitor */
1760 cleanupmons(); 1760 cleanupmons();
1761 mons = newmons; 1761 selmon = mons = newmons;
1762 selmon = wintomon(root); 1762 selmon = wintomon(root);
1763} 1763}
1764 1764
@@ -1891,7 +1891,7 @@ wintomon(Window w) {
1891 return m; 1891 return m;
1892 if((c = wintoclient(w))) 1892 if((c = wintoclient(w)))
1893 return c->mon; 1893 return c->mon;
1894 return mons; 1894 return selmon;
1895} 1895}
1896 1896
1897/* There's no way to check accesses to destroyed windows, thus those cases are 1897/* There's no way to check accesses to destroyed windows, thus those cases are