x11: Disable NETWinInfo in X11Window
This piece of logic belongs in X11Window rather than Deleted as the latter is merely a representation of a closed window.
This commit is contained in:
parent
a42f7f4807
commit
f3dc057c71
2 changed files with 6 additions and 3 deletions
|
@ -66,9 +66,6 @@ void Deleted::copyToDeleted(Window *window)
|
|||
m_type = window->windowType();
|
||||
m_windowRole = window->windowRole();
|
||||
m_shade = window->isShade();
|
||||
if (WinInfo *cinfo = dynamic_cast<WinInfo *>(info)) {
|
||||
cinfo->disable();
|
||||
}
|
||||
if (window->isDecorated()) {
|
||||
window->layoutDecorationRects(decoration_left,
|
||||
decoration_top,
|
||||
|
|
|
@ -394,6 +394,9 @@ void X11Window::releaseWindow(bool on_shutdown)
|
|||
info->setDesktop(0);
|
||||
info->setState(NET::States(), info->state()); // Reset all state flags
|
||||
}
|
||||
if (WinInfo *cinfo = dynamic_cast<WinInfo *>(info)) {
|
||||
cinfo->disable();
|
||||
}
|
||||
xcb_connection_t *c = kwinApp()->x11Connection();
|
||||
m_client.deleteProperty(atoms->kde_net_wm_user_creation_time);
|
||||
m_client.deleteProperty(atoms->net_frame_extents);
|
||||
|
@ -448,6 +451,9 @@ void X11Window::destroyWindow()
|
|||
destroyDecoration();
|
||||
cleanGrouping();
|
||||
workspace()->removeX11Window(this);
|
||||
if (WinInfo *cinfo = dynamic_cast<WinInfo *>(info)) {
|
||||
cinfo->disable();
|
||||
}
|
||||
m_client.reset(); // invalidate
|
||||
m_wrapper.reset();
|
||||
m_frame.reset();
|
||||
|
|
Loading…
Reference in a new issue