Add another RPi hack to fix mouse capture in full-screen in LXDE

This commit is contained in:
Cameron Gutman 2020-02-09 12:00:30 -08:00
parent fa3317f6cd
commit e790b0761e

View file

@ -461,6 +461,15 @@ bool Session::initialize()
break;
}
// HACK: Using a full-screen window breaks mouse capture on the Pi's LXDE
// GUI environment. Force the session to use windowed mode (which won't
// really matter anyway because the MMAL renderer always draws full-screen).
if (qgetenv("DESKTOP_SESSION") == "LXDE-pi") {
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
"Forcing windowed mode on LXDE-Pi");
m_FullScreenFlag = 0;
}
// Check for validation errors/warnings and emit
// signals for them, if appropriate
bool ret = validateLaunch(testWindow);