diff options
| author | Anselm R Garbe <garbeam@gmail.com> | 2009-07-02 14:42:06 +0100 |
|---|---|---|
| committer | Anselm R Garbe <garbeam@gmail.com> | 2009-07-02 14:42:06 +0100 |
| commit | 16e1ef5d400a501780fc676de01ed4ea7638e7a9 (patch) | |
| tree | e368ffc78755a4baf16f9b981c2d66c563d1e74a | |
| parent | several bugfixes (diff) | |
| download | dwm-16e1ef5d400a501780fc676de01ed4ea7638e7a9.tar.gz dwm-16e1ef5d400a501780fc676de01ed4ea7638e7a9.zip | |
minor fix
| -rw-r--r-- | dwm.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -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 | ||
| 1201 | void | 1201 | void |
| @@ -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 |
