changeset: 1538:7a60bff116c7
tag: tip
user: Anselm R Garbe <anselm_AT_garbe.us>
date: Tue Apr 26 08:13:39 2011 +0000
files: dwm.c
description:
applied Jack's mplayer fullscreen patch
diff -r e901e70f69e8 -r 7a60bff116c7 dwm.c
--- a/dwm.c Fri Apr 15 08:13:06 2011 +0000
+++ b/dwm.c Tue Apr 26 08:13:39 2011 +0000
@@ -88,7 +88,7 @@
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;
@@ -532,6 +532,7 @@
if(cme->data.l[0]) {
XChangeProperty(dpy, cme->window, netatom[NetWMState], XA_ATOM, 32,
PropModeReplace, (unsigned char*)&netatom[NetWMFullscreen], 1);
+ c->isfullscreen = True;
c->oldstate = c->isfloating;
c->oldbw = c->bw;
c->bw = 0;
@@ -542,6 +543,7 @@
else {
XChangeProperty(dpy, cme->window, netatom[NetWMState], XA_ATOM, 32,
PropModeReplace, (unsigned char*)0, 0);
+ c->isfullscreen = False;
c->isfloating = c->oldstate;
c->bw = c->oldbw;
c->x = c->oldx;
@@ -1584,7 +1586,7 @@
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) && !c->isfullscreen)
resize(c, c->x, c->y, c->w, c->h, False);
showhide(c->snext);
}
Received on Tue Apr 26 2011 - 10:13:42 CEST
This archive was generated by hypermail 2.2.0 : Tue Apr 26 2011 - 10:24:06 CEST