diff options
author | AlTheKiller <AlTheKiller@svn> | 2009-09-30 02:32:51 +0000 |
---|---|---|
committer | AlTheKiller <AlTheKiller@svn> | 2009-09-30 02:32:51 +0000 |
commit | 2d58ebdb3ff15eb351cc17ac413afad4a06991a4 (patch) | |
tree | 5d3a9622fc5ee1c16c8c6bb28cb057a1915ef36b | |
parent | baba475318bfd6691fca5be83b4696e03cc690cd (diff) |
"fixed": Regain focus on resume. System mouse pointer should hide again.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@23265 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r-- | xbmc/PowerManager.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/xbmc/PowerManager.cpp b/xbmc/PowerManager.cpp index 4342abd661..867c461d0e 100644 --- a/xbmc/PowerManager.cpp +++ b/xbmc/PowerManager.cpp @@ -28,6 +28,7 @@ #include "KeyboardStat.h" #include "MouseStat.h" #include "GUISettings.h" +#include "WindowingFactory.h" #ifdef HAS_LCD #include "utils/LCDFactory.h" @@ -150,8 +151,16 @@ void CPowerManager::Resume() { CLog::Log(LOGNOTICE, "%s: Running resume jobs", __FUNCTION__); - g_Mouse.Acquire(); +#ifdef HAS_SDL + // Hack to reclaim focus, thus rehiding system mouse pointer. + // Surely there's a better way? + if (g_Windowing.IsFullScreen()) + { + g_graphicsContext.ToggleFullScreenRoot(); + g_graphicsContext.ToggleFullScreenRoot(); + } g_application.ResetScreenSaver(); +#endif // restart lirc #ifdef HAS_LIRC |