void Client::setupDecorAndFunctions()
{
// start with everything (cept fullscreen)
- _decorations = Decor_Titlebar | Decor_Handle | Decor_Border |
+ _decorations = Decor_Titlebar | Decor_Handle | Decor_Border | Decor_Sticky |
Decor_Iconify | Decor_Maximize;
_functions = Func_Resize | Func_Move | Func_Iconify | Func_Maximize |
Func_Shade;
frame->show();
else
frame->hide();
+
+ frame->adjustState();
}
otk::Property::atoms.atom, netstate, num);
calcLayer();
+
+ if (frame)
+ frame->adjustState();
}
if (_focused) return true;
+ // do a check to see if the window has already been unmapped or destroyed
+ XEvent ev;
+ if (XCheckTypedWindowEvent(**otk::display, _window, UnmapNotify, &ev) ||
+ XCheckTypedWindowEvent(**otk::display, _window, DestroyNotify, &ev)) {
+ XPutBackEvent(**otk::display, &ev);
+ return false;
+ }
+
if (_can_focus)
XSetInputFocus(**otk::display, _window,
RevertToNone, CurrentTime);