mirror of https://github.com/0intro/wmii
Make menus, toolbars floating by default.
This commit is contained in:
parent
5736b02ed0
commit
ed389d1136
|
@ -352,9 +352,9 @@ Cfmt(Fmt *f) {
|
||||||
c = va_arg(f->args, Client*);
|
c = va_arg(f->args, Client*);
|
||||||
if(c)
|
if(c)
|
||||||
if(f->flags & FmtSharp)
|
if(f->flags & FmtSharp)
|
||||||
return fmtprint(f, "%s", c->name);
|
|
||||||
else
|
|
||||||
return fmtprint(f, "%W", &c->w);
|
return fmtprint(f, "%W", &c->w);
|
||||||
|
else
|
||||||
|
return fmtprint(f, "%s", c->name);
|
||||||
return fmtprint(f, "<nil>");
|
return fmtprint(f, "<nil>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -398,7 +398,7 @@ client_floats_p(Client *c) {
|
||||||
|| c->titleless
|
|| c->titleless
|
||||||
|| c->borderless
|
|| c->borderless
|
||||||
|| c->fullscreen >= 0
|
|| c->fullscreen >= 0
|
||||||
|| (c->w.ewmh.type & (TypeDialog|TypeSplash|TypeDock));
|
|| (c->w.ewmh.type & (TypeDialog|TypeSplash|TypeDock|TypeMenu|TypeToolbar));
|
||||||
}
|
}
|
||||||
|
|
||||||
Frame*
|
Frame*
|
||||||
|
|
|
@ -62,7 +62,9 @@ ewmh_init(void) {
|
||||||
TYPE("DIALOG"),
|
TYPE("DIALOG"),
|
||||||
TYPE("DOCK"),
|
TYPE("DOCK"),
|
||||||
TYPE("NORMAL"),
|
TYPE("NORMAL"),
|
||||||
|
TYPE("MENU"),
|
||||||
TYPE("SPLASH"),
|
TYPE("SPLASH"),
|
||||||
|
TYPE("TOOLBAR"),
|
||||||
/* Actions */
|
/* Actions */
|
||||||
NET("WM_ALLOWED_ACTIONS"),
|
NET("WM_ALLOWED_ACTIONS"),
|
||||||
ACTION("FULLSCREEN"),
|
ACTION("FULLSCREEN"),
|
||||||
|
@ -240,7 +242,7 @@ ewmh_getwintype(Client *c) {
|
||||||
mask = getprop_mask(&c->w, Net("WM_WINDOW_TYPE"), props);
|
mask = getprop_mask(&c->w, Net("WM_WINDOW_TYPE"), props);
|
||||||
|
|
||||||
c->w.ewmh.type = mask;
|
c->w.ewmh.type = mask;
|
||||||
if(mask & TypeDock) {
|
if(mask & (TypeDock|TypeMenu|TypeToolbar)) {
|
||||||
c->borderless = 1;
|
c->borderless = 1;
|
||||||
c->titleless = 1;
|
c->titleless = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue