decor and functions set set right for !normal windows
This commit is contained in:
parent
b02c91caad
commit
58cd3958a3
1 changed files with 3 additions and 3 deletions
|
@ -48,13 +48,13 @@ OBClient::OBClient(int screen, Window window)
|
||||||
getType();
|
getType();
|
||||||
|
|
||||||
// set the decorations and functions
|
// set the decorations and functions
|
||||||
|
_decorations = Decor_Titlebar | Decor_Handle | Decor_Border |
|
||||||
|
Decor_Iconify | Decor_Maximize;
|
||||||
|
_functions = Func_Resize | Func_Move | Func_Iconify | Func_Maximize;
|
||||||
switch (_type) {
|
switch (_type) {
|
||||||
case Type_Normal:
|
case Type_Normal:
|
||||||
// normal windows retain all of the possible decorations and
|
// normal windows retain all of the possible decorations and
|
||||||
// functionality
|
// functionality
|
||||||
_decorations = Decor_Titlebar | Decor_Handle | Decor_Border |
|
|
||||||
Decor_Iconify | Decor_Maximize;
|
|
||||||
_functions = Func_Resize | Func_Move | Func_Iconify | Func_Maximize;
|
|
||||||
|
|
||||||
case Type_Dialog:
|
case Type_Dialog:
|
||||||
// dialogs cannot be maximized
|
// dialogs cannot be maximized
|
||||||
|
|
Loading…
Reference in a new issue