Xinqi Bao's Git
projects
/
dwm.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
fa5ae54
)
some restack fixes, still odd behavior if n>1 on unmanaging clients
author
Anselm R Garbe <
[email protected]
>
Tue, 23 Jun 2009 18:09:30 +0000
(19:09 +0100)
committer
Anselm R Garbe <
[email protected]
>
Tue, 23 Jun 2009 18:09:30 +0000
(19:09 +0100)
dwm.c
patch
|
blob
|
history
diff --git
a/dwm.c
b/dwm.c
index
88e0b1b
..
1909d4b
100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-1045,8
+1045,8
@@
manage(Window w, XWindowAttributes *wa) {
c->y = sy + sh - HEIGHT(c);
c->x = MAX(c->x, sx);
/* only fix client y-offset, if the client center might cover the bar */
c->y = sy + sh - HEIGHT(c);
c->x = MAX(c->x, sx);
/* only fix client y-offset, if the client center might cover the bar */
- c->y = MAX(c->y, ((
selmon->by == 0) && (c->x + (c->w / 2) >= sel
mon->wx)
- && (c->x + (c->w / 2) <
selmon->wx + sel
mon->ww)) ? bh : sy);
+ c->y = MAX(c->y, ((
c->mon->by == 0) && (c->x + (c->w / 2) >= c->
mon->wx)
+ && (c->x + (c->w / 2) <
c->mon->wx + c->
mon->ww)) ? bh : sy);
c->bw = borderpx;
}
c->bw = borderpx;
}
@@
-1271,10
+1271,10
@@
restack(Monitor *m) {
XWindowChanges wc;
drawbars();
XWindowChanges wc;
drawbars();
- if(!
selmon
->sel)
+ if(!
m
->sel)
return;
return;
- if(m
== selmon && (selmon->sel->isfloating || !lt[m->sellt]->arrange)
)
- XRaiseWindow(dpy,
selmon
->sel->win);
+ if(m
->sel->isfloating || !lt[m->sellt]->arrange
)
+ XRaiseWindow(dpy,
m
->sel->win);
if(lt[m->sellt]->arrange) {
wc.stack_mode = Below;
wc.sibling = m->barwin;
if(lt[m->sellt]->arrange) {
wc.stack_mode = Below;
wc.sibling = m->barwin;