tapplied Jack's mplayer fullscreen patch - dwm - [fork] customized build of dwm… | |
git clone git://src.adamsgaard.dk/dwm | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit c14d293e516fa9aebffb63f9775c3be38178ccb3 | |
parent 79b1657a1903447b69083515cfa81bb457a57554 | |
Author: Anselm R Garbe <[email protected]> | |
Date: Tue, 26 Apr 2011 08:13:39 +0000 | |
applied Jack's mplayer fullscreen patch | |
Diffstat: | |
M dwm.c | 6 ++++-- | |
1 file changed, 4 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/dwm.c b/dwm.c | |
t@@ -88,7 +88,7 @@ struct Client { | |
int basew, baseh, incw, inch, maxw, maxh, minw, minh; | |
int bw, oldbw; | |
unsigned int tags; | |
- Bool isfixed, isfloating, isurgent, neverfocus, oldstate; | |
+ Bool isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen; | |
Client *next; | |
Client *snext; | |
Monitor *mon; | |
t@@ -532,6 +532,7 @@ clientmessage(XEvent *e) { | |
if(cme->data.l[0]) { | |
XChangeProperty(dpy, cme->window, netatom[NetWMState],… | |
PropModeReplace, (unsigned char*)&neta… | |
+ c->isfullscreen = True; | |
c->oldstate = c->isfloating; | |
c->oldbw = c->bw; | |
c->bw = 0; | |
t@@ -542,6 +543,7 @@ clientmessage(XEvent *e) { | |
else { | |
XChangeProperty(dpy, cme->window, netatom[NetWMState],… | |
PropModeReplace, (unsigned char*)0, 0); | |
+ c->isfullscreen = False; | |
c->isfloating = c->oldstate; | |
c->bw = c->oldbw; | |
c->x = c->oldx; | |
t@@ -1584,7 +1586,7 @@ showhide(Client *c) { | |
return; | |
if(ISVISIBLE(c)) { /* show clients top down */ | |
XMoveWindow(dpy, c->win, c->x, c->y); | |
- if(!c->mon->lt[c->mon->sellt]->arrange || c->isfloating) | |
+ if((!c->mon->lt[c->mon->sellt]->arrange || c->isfloating) && !… | |
resize(c, c->x, c->y, c->w, c->h, False); | |
showhide(c->snext); | |
} |