Xinqi Bao's Git
projects
/
dwm.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
54c3044
)
applied Andreas Amann fullscreen fix, some minor modifications
author
[email protected]
<unknown>
Sat, 17 Mar 2012 17:14:17 +0000
(18:14 +0100)
committer
[email protected]
<unknown>
Sat, 17 Mar 2012 17:14:17 +0000
(18:14 +0100)
dwm.c
patch
|
blob
|
history
diff --git
a/dwm.c
b/dwm.c
index
2d44442
..
10b0d0d
100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-1261,8
+1261,11
@@
movemouse(const Arg *arg) {
&& (abs(nx - c->x) > snap || abs(ny - c->y) > snap))
togglefloating(NULL);
}
&& (abs(nx - c->x) > snap || abs(ny - c->y) > snap))
togglefloating(NULL);
}
- if(!selmon->lt[selmon->sellt]->arrange || c->isfloating)
+ if(!selmon->lt[selmon->sellt]->arrange || c->isfloating) {
+ if(c->isfullscreen)
+ setfullscreen(c, False);
resize(c, nx, ny, c->w, c->h, True);
resize(c, nx, ny, c->w, c->h, True);
+ }
break;
}
} while(ev.type != ButtonRelease);
break;
}
} while(ev.type != ButtonRelease);
@@
-1397,8
+1400,11
@@
resizemouse(const Arg *arg) {
&& (abs(nw - c->w) > snap || abs(nh - c->h) > snap))
togglefloating(NULL);
}
&& (abs(nw - c->w) > snap || abs(nh - c->h) > snap))
togglefloating(NULL);
}
- if(!selmon->lt[selmon->sellt]->arrange || c->isfloating)
+ if(!selmon->lt[selmon->sellt]->arrange || c->isfloating) {
+ if(c->isfullscreen)
+ setfullscreen(c, False);
resize(c, c->x, c->y, nw, nh, True);
resize(c, c->x, c->y, nw, nh, True);
+ }
break;
}
} while(ev.type != ButtonRelease);
break;
}
} while(ev.type != ButtonRelease);
@@
-1744,6
+1750,8
@@
togglefloating(const Arg *arg) {
if(selmon->sel->isfloating)
resize(selmon->sel, selmon->sel->x, selmon->sel->y,
selmon->sel->w, selmon->sel->h, False);
if(selmon->sel->isfloating)
resize(selmon->sel, selmon->sel->x, selmon->sel->y,
selmon->sel->w, selmon->sel->h, False);
+ else if(selmon->sel->isfullscreen)
+ setfullscreen(selmon->sel, False);
arrange(selmon);
}
arrange(selmon);
}
@@
-2020,7
+2028,6
@@
updatewindowtype(Client *c) {
if(state == netatom[NetWMFullscreen])
setfullscreen(c, True);
if(state == netatom[NetWMFullscreen])
setfullscreen(c, True);
-
if(wtype == netatom[NetWMWindowTypeDialog])
c->isfloating = True;
}
if(wtype == netatom[NetWMWindowTypeDialog])
c->isfloating = True;
}