[hackers] [wmii] Make menus, toolbars floating by default. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Sat, 22 May 2010 16:18:41 +0000 (UTC)

changeset: 2622:e6f4fbe6b3f7
tag: tip
user: Kris Maglione <kris_AT_suckless.org>
date: Sat May 22 12:18:27 2010 -0400
files: cmd/wmii/client.c cmd/wmii/ewmh.c
description:
Make menus, toolbars floating by default.

diff -r 648f465e63ee -r e6f4fbe6b3f7 cmd/wmii/client.c
--- a/cmd/wmii/client.c Sat May 22 11:36:19 2010 -0400
+++ b/cmd/wmii/client.c Sat May 22 12:18:27 2010 -0400
@@ -352,9 +352,9 @@
         c = va_arg(f->args, Client*);
         if(c)
                 if(f->flags & FmtSharp)
+ return fmtprint(f, "%W", &c->w);
+ else
                         return fmtprint(f, "%s", c->name);
- else
- return fmtprint(f, "%W", &c->w);
         return fmtprint(f, "<nil>");
 }
 
@@ -398,7 +398,7 @@
             || c->titleless
             || c->borderless
             || c->fullscreen >= 0
- || (c->w.ewmh.type & (TypeDialog|TypeSplash|TypeDock));
+ || (c->w.ewmh.type & (TypeDialog|TypeSplash|TypeDock|TypeMenu|TypeToolbar));
 }
 
 Frame*
diff -r 648f465e63ee -r e6f4fbe6b3f7 cmd/wmii/ewmh.c
--- a/cmd/wmii/ewmh.c Sat May 22 11:36:19 2010 -0400
+++ b/cmd/wmii/ewmh.c Sat May 22 12:18:27 2010 -0400
@@ -62,7 +62,9 @@
                 TYPE("DIALOG"),
                 TYPE("DOCK"),
                 TYPE("NORMAL"),
+ TYPE("MENU"),
                 TYPE("SPLASH"),
+ TYPE("TOOLBAR"),
                 /* Actions */
                 NET("WM_ALLOWED_ACTIONS"),
                 ACTION("FULLSCREEN"),
@@ -240,7 +242,7 @@
         mask = getprop_mask(&c->w, Net("WM_WINDOW_TYPE"), props);
 
         c->w.ewmh.type = mask;
- if(mask & TypeDock) {
+ if(mask & (TypeDock|TypeMenu|TypeToolbar)) {
                 c->borderless = 1;
                 c->titleless = 1;
         }
Received on Sat May 22 2010 - 16:18:41 UTC

This archive was generated by hypermail 2.2.0 : Sat May 22 2010 - 16:24:03 UTC