Xinqi Bao's Git
projects
/
dwm.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
4bf3b01
)
applied restack patch of anydot, with slight changes
author
Anselm R. Garbe <
[email protected]
>
Wed, 6 Jun 2007 09:43:14 +0000
(11:43 +0200)
committer
Anselm R. Garbe <
[email protected]
>
Wed, 6 Jun 2007 09:43:14 +0000
(11:43 +0200)
layout.c
patch
|
blob
|
history
diff --git
a/layout.c
b/layout.c
index
acf0a8e
..
f8c92ee
100644
(file)
--- a/
layout.c
+++ b/
layout.c
@@
-164,6
+164,7
@@
void
restack(void) {
Client *c;
XEvent ev;
restack(void) {
Client *c;
XEvent ev;
+ XWindowChanges wc;
drawstatus();
if(!sel)
drawstatus();
if(!sel)
@@
-171,12
+172,17
@@
restack(void) {
if(sel->isfloating || lt->arrange == floating)
XRaiseWindow(dpy, sel->win);
if(lt->arrange != floating) {
if(sel->isfloating || lt->arrange == floating)
XRaiseWindow(dpy, sel->win);
if(lt->arrange != floating) {
- if(!sel->isfloating)
- XLowerWindow(dpy, sel->win);
+ wc.stack_mode = Below;
+ wc.sibling = barwin;
+ if(!sel->isfloating) {
+ XConfigureWindow(dpy, sel->win, CWSibling | CWStackMode, &wc);
+ wc.sibling = sel->win;
+ }
for(c = nexttiled(clients); c; c = nexttiled(c->next)) {
if(c == sel)
continue;
for(c = nexttiled(clients); c; c = nexttiled(c->next)) {
if(c == sel)
continue;
- XLowerWindow(dpy, c->win);
+ XConfigureWindow(dpy, c->win, CWSibling | CWStackMode, &wc);
+ wc.sibling = c->win;
}
}
XSync(dpy, False);
}
}
XSync(dpy, False);