From 7b5cf8bcdc3ad243564a774b6cf45baf8fddf6d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 30 Jan 2015 09:28:31 +0100 Subject: [PATCH] [effects] Ensure the correct cursor shape is set for mouse interception When starting mouse interception the window might already be created in which case the cursor wasn't defined. So let's always set it. REVIEW: 12232 --- effects.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/effects.cpp b/effects.cpp index 28319fdcce..cd7ab8992d 100644 --- a/effects.cpp +++ b/effects.cpp @@ -690,6 +690,8 @@ void EffectsHandlerImpl::startMouseInterception(Effect *effect, Qt::CursorShape Cursor::x11Cursor(shape) }; m_mouseInterceptionWindow.reset(Xcb::createInputWindow(geo, mask, values)); + } else { + defineCursor(shape); } m_mouseInterceptionWindow.map(); m_mouseInterceptionWindow.raise();