Make menus, toolbars floating by default.

This commit is contained in:
Kris Maglione 2010-05-22 12:18:27 -04:00
parent 5736b02ed0
commit ed389d1136
2 changed files with 6 additions and 4 deletions

View File

@ -352,9 +352,9 @@ Cfmt(Fmt *f) {
c = va_arg(f->args, Client*);
if(c)
if(f->flags & FmtSharp)
return fmtprint(f, "%s", c->name);
else
return fmtprint(f, "%W", &c->w);
else
return fmtprint(f, "%s", c->name);
return fmtprint(f, "<nil>");
}
@ -398,7 +398,7 @@ client_floats_p(Client *c) {
|| c->titleless
|| c->borderless
|| c->fullscreen >= 0
|| (c->w.ewmh.type & (TypeDialog|TypeSplash|TypeDock));
|| (c->w.ewmh.type & (TypeDialog|TypeSplash|TypeDock|TypeMenu|TypeToolbar));
}
Frame*

View File

@ -62,7 +62,9 @@ ewmh_init(void) {
TYPE("DIALOG"),
TYPE("DOCK"),
TYPE("NORMAL"),
TYPE("MENU"),
TYPE("SPLASH"),
TYPE("TOOLBAR"),
/* Actions */
NET("WM_ALLOWED_ACTIONS"),
ACTION("FULLSCREEN"),
@ -240,7 +242,7 @@ ewmh_getwintype(Client *c) {
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;
}