decor and functions set set right for !normal windows

This commit is contained in:
Dana Jansens 2003-01-04 07:36:29 +00:00
parent b02c91caad
commit 58cd3958a3

View file

@ -48,13 +48,13 @@ OBClient::OBClient(int screen, Window window)
getType();
// 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) {
case Type_Normal:
// normal windows retain all of the possible decorations and
// functionality
_decorations = Decor_Titlebar | Decor_Handle | Decor_Border |
Decor_Iconify | Decor_Maximize;
_functions = Func_Resize | Func_Move | Func_Iconify | Func_Maximize;
case Type_Dialog:
// dialogs cannot be maximized