Introduction
Introduction Statistics Contact Development Disclaimer Help
tapplied Martin Hurton's scan() patch with slight modifications - dwm - [fork] …
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit 6d7285fd6e40508c35eadfdcc2b8940953cac06d
parent 69c7b4b0baa19ef62ae514d06e8e870d87ab71b6
Author: Anselm R Garbe <[email protected]>
Date: Mon, 18 Aug 2008 10:14:51 +0100
applied Martin Hurton's scan() patch with slight modifications
Diffstat:
M dwm.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/dwm.c b/dwm.c
t@@ -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)
t@@ -1265,9 +1264,9 @@ scan(void) {
&& (wa.map_state == IsViewable || getstate(wins[i]) ==…
manage(wins[i], &wa);
}
+ if(wins)
+ XFree(wins);
}
- if(wins)
- XFree(wins);
}
void
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.