added togglefloat to hg tip (i consider this useful for some cases), using MODKEY-Shift-space as shortcut

This commit is contained in:
arg@mig29
2006-11-27 10:57:37 +01:00
parent 35e96b8deb
commit 46d5f9d1bf
4 changed files with 11 additions and 0 deletions

8
view.c
View File

@ -200,6 +200,14 @@ restack(void) {
while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
}
void
togglefloat(Arg *arg) {
if (!sel)
return;
sel->isfloat = !sel->isfloat;
arrange();
}
void
togglemode(Arg *arg) {
arrange = (arrange == dofloat) ? dotile : dofloat;