sdl: ensure dialogs are displayed after window change events (#10929)

Fix #10927

Co-authored-by: NiLuJe <ninuje@gmail.com>
This commit is contained in:
hrdl
2023-09-28 17:50:02 +00:00
committed by GitHub
parent ed885a79b2
commit 4875f63f09

View File

@@ -272,6 +272,9 @@ function Device:init()
FileManager.instance:reinit(FileManager.instance.path,
FileManager.instance.focused_file)
end
-- make sure dialogs are displayed
UIManager:setDirty("all", "ui")
elseif ev.code == SDL_WINDOWEVENT_MOVED then
self.window.left = ev.value.data1
self.window.top = ev.value.data2