mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 14:11:33 +00:00
Don't use duplicate resize workaround on SDL 2.0.21+
This commit is contained in:
@@ -1402,8 +1402,10 @@ void Session::execInternal()
|
|||||||
|
|
||||||
// As of SDL 2.0.20, we get duplicate SDL_WINDOWEVENT_SIZE_CHANGED events
|
// As of SDL 2.0.20, we get duplicate SDL_WINDOWEVENT_SIZE_CHANGED events
|
||||||
// when focus is lost and gained under GNOME Wayland. This causes us to
|
// when focus is lost and gained under GNOME Wayland. This causes us to
|
||||||
// recreate our renderer needlessly.
|
// recreate our renderer needlessly. This is fixed in SDL 2.0.21.
|
||||||
|
#if !SDL_VERSION_ATLEAST(2, 0, 21)
|
||||||
ignoreDuplicateResizes = true;
|
ignoreDuplicateResizes = true;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// X11/XWayland: Capture after decoder creation
|
// X11/XWayland: Capture after decoder creation
|
||||||
|
|||||||
Reference in New Issue
Block a user