Capture mouse by default on debug builds too
This commit is contained in:
parent
b75f662c41
commit
d8270dfb6a
1 changed files with 15 additions and 23 deletions
|
|
@ -1129,13 +1129,6 @@ void Session::exec(int displayOriginX, int displayOriginY)
|
||||||
|
|
||||||
bool needsFirstEnterCapture = false;
|
bool needsFirstEnterCapture = false;
|
||||||
|
|
||||||
// Capture the mouse in relative mode by default on release builds only.
|
|
||||||
// This prevents the mouse from becoming trapped inside Moonlight when
|
|
||||||
// it's halted at a debug break.
|
|
||||||
#ifdef QT_DEBUG
|
|
||||||
if (prefs.absoluteMouseMode)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
// HACK: For Wayland, we wait until we get the first SDL_WINDOWEVENT_ENTER
|
// HACK: For Wayland, we wait until we get the first SDL_WINDOWEVENT_ENTER
|
||||||
// event where it seems to work consistently on GNOME. This doesn't work for
|
// event where it seems to work consistently on GNOME. This doesn't work for
|
||||||
// XWayland though.
|
// XWayland though.
|
||||||
|
|
@ -1155,7 +1148,6 @@ void Session::exec(int displayOriginX, int displayOriginY)
|
||||||
// Native Wayland: Capture on SDL_WINDOWEVENT_ENTER
|
// Native Wayland: Capture on SDL_WINDOWEVENT_ENTER
|
||||||
needsFirstEnterCapture = true;
|
needsFirstEnterCapture = true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Stop text input. SDL enables it by default
|
// Stop text input. SDL enables it by default
|
||||||
// when we initialize the video subsystem, but this
|
// when we initialize the video subsystem, but this
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue