summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authoranselm@garbe.us <unknown>2012-03-17 18:14:17 +0100
committeranselm@garbe.us <unknown>2012-03-17 18:14:17 +0100
commit1b62f8fa58eba3e535134912da2fa305fb7d3021 (patch)
tree63641aa5ef75a696687841e7bd74aaa1f3c7517f /dwm.c
parentunfocus on slow sloppy monitor focus (diff)
downloaddwm-1b62f8fa58eba3e535134912da2fa305fb7d3021.tar.gz
dwm-1b62f8fa58eba3e535134912da2fa305fb7d3021.zip
applied Andreas Amann fullscreen fix, some minor modifications
Diffstat (limited to '')
-rw-r--r--dwm.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/dwm.c b/dwm.c
index 2d44442..10b0d0d 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1261,8 +1261,11 @@ movemouse(const Arg *arg) {
1261 && (abs(nx - c->x) > snap || abs(ny - c->y) > snap)) 1261 && (abs(nx - c->x) > snap || abs(ny - c->y) > snap))
1262 togglefloating(NULL); 1262 togglefloating(NULL);
1263 } 1263 }
1264 if(!selmon->lt[selmon->sellt]->arrange || c->isfloating) 1264 if(!selmon->lt[selmon->sellt]->arrange || c->isfloating) {
1265 if(c->isfullscreen)
1266 setfullscreen(c, False);
1265 resize(c, nx, ny, c->w, c->h, True); 1267 resize(c, nx, ny, c->w, c->h, True);
1268 }
1266 break; 1269 break;
1267 } 1270 }
1268 } while(ev.type != ButtonRelease); 1271 } while(ev.type != ButtonRelease);
@@ -1397,8 +1400,11 @@ resizemouse(const Arg *arg) {
1397 && (abs(nw - c->w) > snap || abs(nh - c->h) > snap)) 1400 && (abs(nw - c->w) > snap || abs(nh - c->h) > snap))
1398 togglefloating(NULL); 1401 togglefloating(NULL);
1399 } 1402 }
1400 if(!selmon->lt[selmon->sellt]->arrange || c->isfloating) 1403 if(!selmon->lt[selmon->sellt]->arrange || c->isfloating) {
1404 if(c->isfullscreen)
1405 setfullscreen(c, False);
1401 resize(c, c->x, c->y, nw, nh, True); 1406 resize(c, c->x, c->y, nw, nh, True);
1407 }
1402 break; 1408 break;
1403 } 1409 }
1404 } while(ev.type != ButtonRelease); 1410 } while(ev.type != ButtonRelease);
@@ -1744,6 +1750,8 @@ togglefloating(const Arg *arg) {
1744 if(selmon->sel->isfloating) 1750 if(selmon->sel->isfloating)
1745 resize(selmon->sel, selmon->sel->x, selmon->sel->y, 1751 resize(selmon->sel, selmon->sel->x, selmon->sel->y,
1746 selmon->sel->w, selmon->sel->h, False); 1752 selmon->sel->w, selmon->sel->h, False);
1753 else if(selmon->sel->isfullscreen)
1754 setfullscreen(selmon->sel, False);
1747 arrange(selmon); 1755 arrange(selmon);
1748} 1756}
1749 1757
@@ -2020,7 +2028,6 @@ updatewindowtype(Client *c) {
2020 2028
2021 if(state == netatom[NetWMFullscreen]) 2029 if(state == netatom[NetWMFullscreen])
2022 setfullscreen(c, True); 2030 setfullscreen(c, True);
2023
2024 if(wtype == netatom[NetWMWindowTypeDialog]) 2031 if(wtype == netatom[NetWMWindowTypeDialog])
2025 c->isfloating = True; 2032 c->isfloating = True;
2026} 2033}