mirror of
https://github.com/0intro/wmii
synced 2024-11-22 05:42:05 +03:00
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*);
|
||||
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*
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user