Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fshack: winex11.drv: Use fs_hack_monitor_from_rect() in X11DRV_ShowWi…
…ndow(). fs_hack_monitor_from_hwnd() returns the primary monitor when the window is minimized. So a fullscreen window on the secondary monitor that later gets minimized may be moved to the primary monitor when fs_hack_monitor_from_hwnd() returns the primary monitor. Instead, we should use fs_hack_monitor_from_rect() and use the updated window rectangle to retrieve the monitor a window should be fullscreen on. fs_hack_monitor_from_hwnd() should only be used when not expecting window position changes.
- Loading branch information