[wiki] [sites] dont raisefloating() when layout is floating || Unia
commit f525c9c131a9b9a4f9aa5c12925c958e77e5491e
Author: Unia <jthidskes_AT_live.nl>
Date: Thu Mar 21 13:00:31 2013 +0100
dont raisefloating() when layout is floating
diff --git a/dwm.suckless.org/patches/dwm-6.0-singularborders.diff b/dwm.suckless.org/patches/dwm-6.0-singularborders.diff
index f73458f..08537e2 100644
--- a/dwm.suckless.org/patches/dwm-6.0-singularborders.diff
+++ b/dwm.suckless.org/patches/dwm-6.0-singularborders.diff
_AT_@ -1,5 +1,5 @@
---- dwm.c 2011-12-19 16:02:46.000000000 +0100
-+++ dwm.c 2013-03-21 01:02:01.376581432 +0100
+--- dwm.c.orig 2013-03-21 12:53:45.498473296 +0100
++++ dwm.c 2013-03-21 12:54:45.321805710 +0100
_AT_@ -206,6 +206,7 @@
static void pop(Client *);
static void propertynotify(XEvent *e);
_AT_@ -26,7 +26,7 @@
}
void
-_AT_@ -1328,6 +1331,18 @@
+_AT_@ -1328,6 +1331,20 @@
running = False;
}
_AT_@ -35,9 +35,11 @@
+ Client *c;
+ XEvent ev;
+
-+ for(c = selmon->clients; c; c = c->next)
-+ if(c->isfloating)
-+ XRaiseWindow(dpy, c->win);
++ if(selmon->lt[selmon->sellt]->arrange) {
++ for(c = selmon->clients; c; c = c->next)
++ if(c->isfloating)
++ XRaiseWindow(dpy, c->win);
++ }
+ XSync(dpy, False);
+ while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
+}
_AT_@ -45,7 +47,7 @@
Monitor *
recttomon(int x, int y, int w, int h) {
Monitor *m, *r = selmon;
-_AT_@ -1717,13 +1732,13 @@
+_AT_@ -1717,13 +1734,13 @@
for(i = my = ty = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++)
if(i < m->nmaster) {
h = (m->wh - my) / (MIN(n, m->nmaster) - i);
diff --git a/dwm.suckless.org/patches/dwm-6.0-singularborders_bstack.diff b/dwm.suckless.org/patches/dwm-6.0-singularborders_bstack.diff
index 76dc6f8..746793f 100644
--- a/dwm.suckless.org/patches/dwm-6.0-singularborders_bstack.diff
+++ b/dwm.suckless.org/patches/dwm-6.0-singularborders_bstack.diff
_AT_@ -1,5 +1,5 @@
---- dwm.c.orig 2013-03-21 01:06:21.813243737 +0100
-+++ dwm.c 2013-03-21 01:07:31.473242547 +0100
+--- dwm.c.orig 2013-03-21 12:56:41.818470330 +0100
++++ dwm.c 2013-03-21 12:59:07.195134552 +0100
_AT_@ -207,6 +207,7 @@
static void pop(Client *);
static void propertynotify(XEvent *e);
_AT_@ -19,10 +19,10 @@
}
else {
w = (m->ww - tx) / (n - i);
-- resize(c, m->wx + tx, m->wy + mh, w - (2*c->bw), m->wh - mh - (2*c->bw), False);
+- resize(c, m->wx + tx, m->wy + mh, w - (2*c->bw), m->wh - mh - (2*c->bw$
- tx += WIDTH(c);
+ resize(c, m->wx + tx - c->bw, m->wy + mh, w, m->wh - mh - c->bw, False);
-+ tx += WIDTH(c) - c->bw;
++ tx += WIDTH(c) - c->bw
}
}
_AT_@ -44,7 +44,7 @@
}
void
-_AT_@ -1355,6 +1358,18 @@
+_AT_@ -1355,6 +1358,20 @@
running = False;
}
_AT_@ -53,9 +53,11 @@
+ Client *c;
+ XEvent ev;
+
-+ for(c = selmon->clients; c; c = c->next)
-+ if(c->isfloating)
-+ XRaiseWindow(dpy, c->win);
++ if(selmon->lt[selmon->sellt]->arrange) {
++ for(c = selmon->clients; c; c = c->next)
++ if(c->isfloating)
++ XRaiseWindow(dpy, c->win);
++ }
+ XSync(dpy, False);
+ while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
+}
_AT_@ -63,7 +65,7 @@
Monitor *
recttomon(int x, int y, int w, int h) {
Monitor *m, *r = selmon;
-_AT_@ -1744,13 +1759,13 @@
+_AT_@ -1744,13 +1761,13 @@
for(i = my = ty = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++)
if(i < m->nmaster) {
h = (m->wh - my) / (MIN(n, m->nmaster) - i);
Received on Thu Mar 21 2013 - 13:00:18 CET
This archive was generated by hypermail 2.3.0
: Thu Mar 21 2013 - 13:12:10 CET