all repos — dwm @ 1b62f8fa58eba3e535134912da2fa305fb7d3021

my dwm build

applied Andreas Amann fullscreen fix, some minor modifications
anselm@garbe.us unknown
Sat, 17 Mar 2012 18:14:17 +0100
commit

1b62f8fa58eba3e535134912da2fa305fb7d3021

parent

54c3044decc9848ba18c137dd3558dc8bdf71f34

1 files changed, 10 insertions(+), 3 deletions(-)

jump to
M dwm.cdwm.c

@@ -1261,8 +1261,11 @@ if(!c->isfloating && selmon->lt[selmon->sellt]->arrange

&& (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);

@@ -1397,8 +1400,11 @@ if(!c->isfloating && selmon->lt[selmon->sellt]->arrange

&& (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);

@@ -1744,6 +1750,8 @@ selmon->sel->isfloating = !selmon->sel->isfloating || selmon->sel->isfixed;

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); }

@@ -2020,7 +2028,6 @@ Atom wtype = getatomprop(c, netatom[NetWMWindowType]);

if(state == netatom[NetWMFullscreen]) setfullscreen(c, True); - if(wtype == netatom[NetWMWindowTypeDialog]) c->isfloating = True; }