summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R Garbe <anselm@garbe.us>2011-04-26 08:13:39 +0000
committerAnselm R Garbe <anselm@garbe.us>2011-04-26 08:13:39 +0000
commitc14d293e516fa9aebffb63f9775c3be38178ccb3 (patch)
tree57c92603b8bd47cc4205feea7531b03928dac40a
parentmissed declaration (diff)
downloaddwm-c14d293e516fa9aebffb63f9775c3be38178ccb3.tar.gz
dwm-c14d293e516fa9aebffb63f9775c3be38178ccb3.zip
applied Jack's mplayer fullscreen patch
Diffstat (limited to '')
-rw-r--r--dwm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index 59b4498..d088327 100644
--- a/dwm.c
+++ b/dwm.c
@@ -88,7 +88,7 @@ struct Client {
88 int basew, baseh, incw, inch, maxw, maxh, minw, minh; 88 int basew, baseh, incw, inch, maxw, maxh, minw, minh;
89 int bw, oldbw; 89 int bw, oldbw;
90 unsigned int tags; 90 unsigned int tags;
91 Bool isfixed, isfloating, isurgent, neverfocus, oldstate; 91 Bool isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen;
92 Client *next; 92 Client *next;
93 Client *snext; 93 Client *snext;
94 Monitor *mon; 94 Monitor *mon;
@@ -532,6 +532,7 @@ clientmessage(XEvent *e) {
532 if(cme->data.l[0]) { 532 if(cme->data.l[0]) {
533 XChangeProperty(dpy, cme->window, netatom[NetWMState], XA_ATOM, 32, 533 XChangeProperty(dpy, cme->window, netatom[NetWMState], XA_ATOM, 32,
534 PropModeReplace, (unsigned char*)&netatom[NetWMFullscreen], 1); 534 PropModeReplace, (unsigned char*)&netatom[NetWMFullscreen], 1);
535 c->isfullscreen = True;
535 c->oldstate = c->isfloating; 536 c->oldstate = c->isfloating;
536 c->oldbw = c->bw; 537 c->oldbw = c->bw;
537 c->bw = 0; 538 c->bw = 0;
@@ -542,6 +543,7 @@ clientmessage(XEvent *e) {
542 else { 543 else {
543 XChangeProperty(dpy, cme->window, netatom[NetWMState], XA_ATOM, 32, 544 XChangeProperty(dpy, cme->window, netatom[NetWMState], XA_ATOM, 32,
544 PropModeReplace, (unsigned char*)0, 0); 545 PropModeReplace, (unsigned char*)0, 0);
546 c->isfullscreen = False;
545 c->isfloating = c->oldstate; 547 c->isfloating = c->oldstate;
546 c->bw = c->oldbw; 548 c->bw = c->oldbw;
547 c->x = c->oldx; 549 c->x = c->oldx;
@@ -1584,7 +1586,7 @@ showhide(Client *c) {
1584 return; 1586 return;
1585 if(ISVISIBLE(c)) { /* show clients top down */ 1587 if(ISVISIBLE(c)) { /* show clients top down */
1586 XMoveWindow(dpy, c->win, c->x, c->y); 1588 XMoveWindow(dpy, c->win, c->x, c->y);
1587 if(!c->mon->lt[c->mon->sellt]->arrange || c->isfloating) 1589 if((!c->mon->lt[c->mon->sellt]->arrange || c->isfloating) && !c->isfullscreen)
1588 resize(c, c->x, c->y, c->w, c->h, False); 1590 resize(c, c->x, c->y, c->w, c->h, False);
1589 showhide(c->snext); 1591 showhide(c->snext);
1590 } 1592 }