Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
some more refactoring
[dwm.git]
/
tile.c
diff --git
a/tile.c
b/tile.c
index
a9bc0f5
..
8075e55
100644
(file)
--- a/
tile.c
+++ b/
tile.c
@@
-3,15
+3,17
@@
*/
#include "dwm.h"
*/
#include "dwm.h"
+unsigned int master = MASTER;
+unsigned int nmaster = NMASTER;
+
/* static */
static void
togglemax(Client *c) {
XEvent ev;
/* static */
static void
togglemax(Client *c) {
XEvent ev;
-
+
if(c->isfixed)
return;
if(c->isfixed)
return;
-
if((c->ismax = !c->ismax)) {
c->rx = c->x;
c->ry = c->y;
if((c->ismax = !c->ismax)) {
c->rx = c->x;
c->ry = c->y;
@@
-123,10
+125,7
@@
zoom(Arg *arg) {
if(!(c = nextmanaged(c->next)))
return;
detach(c);
if(!(c = nextmanaged(c->next)))
return;
detach(c);
- if(clients)
- clients->prev = c;
- c->next = clients;
- clients = c;
+ attach(c);
focus(c);
arrange();
}
focus(c);
arrange();
}