better logic when changing a window's decoration level, for choosing what elements of decoration get placed on the window.
This commit is contained in:
parent
fb1ef42d42
commit
00dc78c66f
1 changed files with 11 additions and 7 deletions
|
@ -3091,21 +3091,25 @@ void OpenboxWindow::changeOpenboxHints(OpenboxHints *net) {
|
||||||
|
|
||||||
default:
|
default:
|
||||||
case DecorNormal:
|
case DecorNormal:
|
||||||
decorations.titlebar = decorations.border = decorations.handle =
|
decorations.titlebar = decorations.iconify = decorations.menu =
|
||||||
decorations.iconify = decorations.maximize = decorations.menu = True;
|
decorations.border = True;
|
||||||
|
decorations.handle = (functions.resize && !flags.transient);
|
||||||
|
decorations.maximize = functions.maximize;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DecorTiny:
|
case DecorTiny:
|
||||||
decorations.titlebar = decorations.iconify = decorations.menu = True;
|
decorations.titlebar = decorations.iconify = decorations.menu = True;
|
||||||
decorations.border = decorations.handle = decorations.maximize = False;
|
decorations.border = decorations.border = decorations.handle = False;
|
||||||
|
decorations.maximize = functions.maximize;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DecorTool:
|
case DecorTool:
|
||||||
decorations.titlebar = decorations.menu = functions.move = True;
|
decorations.titlebar = decorations.menu = True;
|
||||||
decorations.iconify = decorations.border = decorations.handle =
|
decorations.iconify = decorations.border = False;
|
||||||
decorations.maximize = False;
|
decorations.handle = (functions.resize && !flags.transient);
|
||||||
|
decorations.maximize = functions.maximize;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue