[hackers] [dwm] applied Andreas Amann fullscreen fix, some minor modifications || anselm
changeset: 1597:ba5be5b023e1
tag: tip
user: anselm_AT_garbe.us
date: Sat Mar 17 18:14:17 2012 +0100
files: dwm.c
description:
applied Andreas Amann fullscreen fix, some minor modifications
diff -r ad90e7fab364 -r ba5be5b023e1 dwm.c
--- a/dwm.c Fri Feb 10 00:36:08 2012 +0000
+++ b/dwm.c Sat Mar 17 18:14:17 2012 +0100
_AT_@ -1261,8 +1261,11 @@
&& (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);
+ }
break;
}
} while(ev.type != ButtonRelease);
_AT_@ -1397,8 +1400,11 @@
&& (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);
+ }
break;
}
} while(ev.type != ButtonRelease);
_AT_@ -1744,6 +1750,8 @@
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);
}
_AT_@ -2020,7 +2028,6 @@
if(state == netatom[NetWMFullscreen])
setfullscreen(c, True);
-
if(wtype == netatom[NetWMWindowTypeDialog])
c->isfloating = True;
}
Received on Sat Mar 17 2012 - 18:14:21 CET
This archive was generated by hypermail 2.3.0
: Sat Mar 17 2012 - 18:24:10 CET