summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2009-07-02 14:42:06 +0100
committerAnselm R Garbe <garbeam@gmail.com>2009-07-02 14:42:06 +0100
commit16e1ef5d400a501780fc676de01ed4ea7638e7a9 (patch)
treee368ffc78755a4baf16f9b981c2d66c563d1e74a
parentseveral bugfixes (diff)
downloaddwm-16e1ef5d400a501780fc676de01ed4ea7638e7a9.tar.gz
dwm-16e1ef5d400a501780fc676de01ed4ea7638e7a9.zip
minor fix
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