fix for fullscreen on X11 (used by the BGE, not blender application),

changing the screen resolution wasn't still allowed for larger virtual desktops.

added an exclusive option to ghost so the fullscreen window is ignored by the window manager and we get all events. (common practice for games on X11).
This commit is contained in:
Campbell Barton
2013-02-24 05:05:29 +00:00
parent 93c3593d82
commit 630a31a900
12 changed files with 103 additions and 29 deletions

View File

@@ -386,6 +386,7 @@ bool GPG_Application::startFullScreen(
fSystem->beginFullScreen(setting, &m_mainWindow, stereoVisual, samples);
m_mainWindow->setCursorVisibility(false);
/* note that X11 ignores this (it uses a window internally for fullscreen) */
m_mainWindow->setState(GHOST_kWindowStateFullScreen);
success = initEngine(m_mainWindow, stereoMode);