about summary refs log tree commit diff stats
path: root/view.c
diff options
context:
space:
mode:
authorarg@mig29 <unknown>2006-11-27 10:57:37 +0100
committerarg@mig29 <unknown>2006-11-27 10:57:37 +0100
commit46d5f9d1bfd8caaabaabfb7c7e5eac269aff4987 (patch)
treeaef384fcafe76d5d5c527a77ed2d6864fea3fe81 /view.c
parent35e96b8deba8aae863cef32f2ea2a84ebf162472 (diff)
downloaddwm-46d5f9d1bfd8caaabaabfb7c7e5eac269aff4987.tar.gz
added togglefloat to hg tip (i consider this useful for some cases), using MODKEY-Shift-space as shortcut
Diffstat (limited to 'view.c')
-rw-r--r--view.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/view.c b/view.c
index e7d7a99..21e7bbd 100644
--- a/view.c
+++ b/view.c
@@ -201,6 +201,14 @@ restack(void) {
 }
 
 void
+togglefloat(Arg *arg) {
+	if (!sel)
+		return;
+	sel->isfloat = !sel->isfloat;
+	arrange();
+}
+
+void
 togglemode(Arg *arg) {
 	arrange = (arrange == dofloat) ? dotile : dofloat;
 	if(sel)