tsome restack fixes, still odd behavior if n>1 on unmanaging clients - dwm - [f… | |
git clone git://src.adamsgaard.dk/dwm | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 5c4913e9838534e880a1334ddc76c80810019f62 | |
parent fa5ae54bbb7f890540f4700809e00497018e0239 | |
Author: Anselm R Garbe <[email protected]> | |
Date: Tue, 23 Jun 2009 19:09:30 +0100 | |
some restack fixes, still odd behavior if n>1 on unmanaging clients | |
Diffstat: | |
M dwm.c | 10 +++++----- | |
1 file changed, 5 insertions(+), 5 deletions(-) | |
--- | |
diff --git a/dwm.c b/dwm.c | |
t@@ -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 … | |
- c->y = MAX(c->y, ((selmon->by == 0) && (c->x + (c->w / 2) >= s… | |
- && (c->x + (c->w / 2) < selmon->wx + selmon->ww)) ?… | |
+ c->y = MAX(c->y, ((c->mon->by == 0) && (c->x + (c->w / 2) >= c… | |
+ && (c->x + (c->w / 2) < c->mon->wx + c->mon->ww)) ?… | |
c->bw = borderpx; | |
} | |
t@@ -1271,10 +1271,10 @@ restack(Monitor *m) { | |
XWindowChanges wc; | |
drawbars(); | |
- if(!selmon->sel) | |
+ if(!m->sel) | |
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; |