Delete highlight windows property from correct window

TabBox is always declarative view.
This commit is contained in:
Martin Gräßlin 2012-01-14 11:55:39 +01:00
parent 17eb923f34
commit a243d0b0b8

View file

@ -223,7 +223,7 @@ void TabBoxHandlerPrivate::endHighlightWindows(bool abort)
// highlight windows
Display *dpy = QX11Info::display();
Atom atom = XInternAtom(dpy, "_KDE_WINDOW_HIGHLIGHT", False);
XDeleteProperty(dpy, config.isShowTabBox() && view ? view->winId() : QX11Info::appRootWindow(), atom);
XDeleteProperty(dpy, config.isShowTabBox() && m_declarativeView ? m_declarativeView->winId() : QX11Info::appRootWindow(), atom);
}
/***********************************************************