aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Hochecker <fernetmenta@online.de>2014-08-30 08:50:36 +0200
committerRainer Hochecker <fernetmenta@online.de>2014-08-31 17:13:24 +0200
commit4671c65852d0bd4ce348923c131256c8f982b7ed (patch)
treee54bd8970380f1b26e8bb5fb635a9cdcda77584a
parent9d51de3b74d7451e5ce124a910f22fd5e2c67e89 (diff)
X11: hide mouse on initial creation of window
-rw-r--r--xbmc/windowing/X11/WinSystemX11.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/xbmc/windowing/X11/WinSystemX11.cpp b/xbmc/windowing/X11/WinSystemX11.cpp
index 74533e1d87..bb30b52be4 100644
--- a/xbmc/windowing/X11/WinSystemX11.cpp
+++ b/xbmc/windowing/X11/WinSystemX11.cpp
@@ -795,6 +795,11 @@ bool CWinSystemX11::SetWindow(int width, int height, bool fullscreen, const std:
float mouseX = 0.5;
float mouseY = 0.5;
+ if (!m_mainWindow)
+ {
+ g_Mouse.SetActive(false);
+ }
+
if (m_mainWindow && ((m_bFullScreen != fullscreen) || m_currentOutput.compare(output) != 0 || m_windowDirty))
{
// set mouse to last known position