Port setInputFocus in KWin::Application dtor to XCB
This commit is contained in:
parent
a2d97fef17
commit
af2359ef98
1 changed files with 2 additions and 2 deletions
4
main.cpp
4
main.cpp
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue