From af2359ef98c26c23c508f6eb0885921451b32041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 29 Aug 2013 10:41:45 +0200 Subject: [PATCH] Port setInputFocus in KWin::Application dtor to XCB --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 94381f4467..577d73208c 100644 --- a/main.cpp +++ b/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; }