summaryrefslogtreecommitdiff
path: root/src/utils/xml.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2025-07-04 17:06:32 +0000
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2025-07-04 17:06:32 +0000
commit3fb53be63095dad2ebcfd52d44f13d20f630e478 (patch)
tree645f45caa1ca94c53f90713a1bc3d1b97bc59ebf /src/utils/xml.cpp
parent49d4981d5e7902489db2d4be8d4ad388fbd616bd (diff)
downloadmana-3fb53be63095dad2ebcfd52d44f13d20f630e478.tar.gz
mana-3fb53be63095dad2ebcfd52d44f13d20f630e478.tar.bz2
mana-3fb53be63095dad2ebcfd52d44f13d20f630e478.tar.xz
mana-3fb53be63095dad2ebcfd52d44f13d20f630e478.zip
Allow the window to keep updating during move/resize on Windows and macOS
On Windows, the SDL event loop would get blocked during move/resize, which made the game stop updating. Since version 2.30, SDL will send its SDL_WINDOWEVENT_EXPOSED event on an internal timer during window move/resize so the application can keep redrawing. Since no window size changed events can be received either, the size of the window and the renderer is now updated at the start of each frame. On macOS the SDL event loop was similarly blocked during resize. The event watcher is only used on Windows and macOS because on X11 the processing of all the queued up expose events can cause a delayed response to resizing. Besides, the issues fixed by this watcher don't exist on X11 and Wayland.
Diffstat (limited to 'src/utils/xml.cpp')
0 files changed, 0 insertions, 0 deletions