make this XQueryTree like the other
This commit is contained in:
parent
ea2abae9f3
commit
4c3987dcc1
@ -15,7 +15,7 @@
|
|||||||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*
|
*
|
||||||
* $OpenBSD: screen.c,v 1.58 2014/02/03 20:20:39 okan Exp $
|
* $OpenBSD: screen.c,v 1.59 2014/02/03 20:29:05 okan Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -97,9 +97,7 @@ screen_updatestackingorder(struct screen_ctx *sc)
|
|||||||
struct client_ctx *cc;
|
struct client_ctx *cc;
|
||||||
unsigned int nwins, i, s;
|
unsigned int nwins, i, s;
|
||||||
|
|
||||||
if (!XQueryTree(X_Dpy, sc->rootwin, &w0, &w1, &wins, &nwins))
|
if (XQueryTree(X_Dpy, sc->rootwin, &w0, &w1, &wins, &nwins)) {
|
||||||
return;
|
|
||||||
|
|
||||||
for (s = 0, i = 0; i < nwins; i++) {
|
for (s = 0, i = 0; i < nwins; i++) {
|
||||||
/* Skip hidden windows */
|
/* Skip hidden windows */
|
||||||
if ((cc = client_find(wins[i])) == NULL ||
|
if ((cc = client_find(wins[i])) == NULL ||
|
||||||
@ -108,9 +106,9 @@ screen_updatestackingorder(struct screen_ctx *sc)
|
|||||||
|
|
||||||
cc->stackingorder = s++;
|
cc->stackingorder = s++;
|
||||||
}
|
}
|
||||||
|
|
||||||
XFree(wins);
|
XFree(wins);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Find which xinerama screen the coordinates (x,y) is on.
|
* Find which xinerama screen the coordinates (x,y) is on.
|
||||||
|
Loading…
Reference in New Issue
Block a user