Browse Source

applied Martin Hurton's scan() patch with slight modifications

config
Anselm R Garbe 16 years ago
parent
commit
6d7285fd6e
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      dwm.c

+ 3
- 4
dwm.c View File

@ -1246,10 +1246,9 @@ run(void) {
void
scan(void) {
unsigned int i, num;
Window *wins, d1, d2;
Window d1, d2, *wins = NULL;
XWindowAttributes wa;
wins = NULL;
if(XQueryTree(dpy, root, &d1, &d2, &wins, &num)) {
for(i = 0; i < num; i++) {
if(!XGetWindowAttributes(dpy, wins[i], &wa)
@ -1265,9 +1264,9 @@ scan(void) {
&& (wa.map_state == IsViewable || getstate(wins[i]) == IconicState))
manage(wins[i], &wa);
}
if(wins)
XFree(wins);
}
if(wins)
XFree(wins);
}
void


Loading…
Cancel
Save