equal
deleted
inserted
replaced
1193 Monitor *m; |
1193 Monitor *m; |
1194 |
1194 |
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 |
1202 propertynotify(XEvent *e) { |
1202 propertynotify(XEvent *e) { |
1203 Client *c; |
1203 Client *c; |
1756 attachstack(c); |
1756 attachstack(c); |
1757 } |
1757 } |
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 |
1765 void |
1765 void |
1766 updatenumlockmask(void) { |
1766 updatenumlockmask(void) { |
1889 for(m = mons; m; m = m->next) |
1889 for(m = mons; m; m = m->next) |
1890 if(w == m->barwin) |
1890 if(w == m->barwin) |
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 |
1898 * ignored (especially on UnmapNotify's). Other types of errors call Xlibs |
1898 * ignored (especially on UnmapNotify's). Other types of errors call Xlibs |
1899 * default error handler, which may call exit. */ |
1899 * default error handler, which may call exit. */ |