JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
added togglefloat to hg tip (i consider this useful for some cases), using MODKEY...
[dwm.git] / view.c
diff --git a/view.c b/view.c
index e7d7a99..21e7bbd 100644 (file)
--- 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)