mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-08 16:56:03 +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
|
||||
// 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;
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
// X11/XWayland: Capture after decoder creation
|
||||
|
||||
Reference in New Issue
Block a user