Xinqi Bao's Git
projects
/
dwm.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
5656970
)
applied Marc Andre Tanners showhide patch, the removal of ntiled
author
Anselm R Garbe <
[email protected]
>
Thu, 19 Mar 2009 13:06:15 +0000
(13:06 +0000)
committer
Anselm R Garbe <
[email protected]
>
Thu, 19 Mar 2009 13:06:15 +0000
(13:06 +0000)
config.mk
patch
|
blob
|
history
dwm.c
patch
|
blob
|
history
diff --git
a/config.mk
b/config.mk
index
40e74b0
..
957a92c
100644
(file)
--- a/
config.mk
+++ b/
config.mk
@@
-11,8
+11,8
@@
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
# Xinerama, un-comment if you want it
X11LIB = /usr/X11R6/lib
# Xinerama, un-comment if you want it
-
#
XINERAMALIBS = -L${X11LIB} -lXinerama
-
#
XINERAMAFLAGS = -DXINERAMA
+XINERAMALIBS = -L${X11LIB} -lXinerama
+XINERAMAFLAGS = -DXINERAMA
# includes and libs
INCS = -I. -I/usr/include -I${X11INC}
# includes and libs
INCS = -I. -I/usr/include -I${X11INC}
diff --git
a/dwm.c
b/dwm.c
index
43dcdc0
..
8620306
100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-179,7
+179,7
@@
static void setclientstate(Client *c, long state);
static void setlayout(const Arg *arg);
static void setmfact(const Arg *arg);
static void setup(void);
static void setlayout(const Arg *arg);
static void setmfact(const Arg *arg);
static void setup(void);
-static void showhide(Client *c
, unsigned int ntiled
);
+static void showhide(Client *c);
static void sigchld(int signal);
static void spawn(const Arg *arg);
static void tag(const Arg *arg);
static void sigchld(int signal);
static void spawn(const Arg *arg);
static void tag(const Arg *arg);
@@
-338,11
+338,7
@@
applysizehints(Client *c, int *x, int *y, int *w, int *h) {
void
arrange(void) {
void
arrange(void) {
- unsigned int nt;
- Client *c;
-
- for(nt = 0, c = nexttiled(clients); c; c = nexttiled(c->next), nt++);
- showhide(stack, nt);
+ showhide(stack);
focus(NULL);
if(lt[sellt]->arrange)
lt[sellt]->arrange();
focus(NULL);
if(lt[sellt]->arrange)
lt[sellt]->arrange();
@@
-1330,17
+1326,17
@@
setup(void) {
}
void
}
void
-showhide(Client *c
, unsigned int ntiled
) {
+showhide(Client *c) {
if(!c)
return;
if(ISVISIBLE(c)) { /* show clients top down */
XMoveWindow(dpy, c->win, c->x, c->y);
if(!lt[sellt]->arrange || c->isfloating)
resize(c, c->x, c->y, c->w, c->h);
if(!c)
return;
if(ISVISIBLE(c)) { /* show clients top down */
XMoveWindow(dpy, c->win, c->x, c->y);
if(!lt[sellt]->arrange || c->isfloating)
resize(c, c->x, c->y, c->w, c->h);
- showhide(c->snext
, ntiled
);
+ showhide(c->snext);
}
else { /* hide clients bottom up */
}
else { /* hide clients bottom up */
- showhide(c->snext
, ntiled
);
+ showhide(c->snext);
XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y);
}
}
XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y);
}
}