Port setInputFocus in KWin::Application dtor to XCB

This commit is contained in:
Martin Gräßlin 2013-08-29 10:41:45 +02:00
parent a2d97fef17
commit af2359ef98

View file

@ -309,8 +309,8 @@ void Application::start()
Application::~Application()
{
delete Workspace::self();
if (owner.ownerWindow() != None) // If there was no --replace (no new WM)
XSetInputFocus(display(), PointerRoot, RevertToPointerRoot, xTime());
if (owner.ownerWindow() != XCB_WINDOW_NONE) // If there was no --replace (no new WM)
Xcb::setInputFocus(XCB_INPUT_FOCUS_POINTER_ROOT);
delete options;
delete atoms;
}