Alexandre Julliard pushed to branch master at wine / wine
Commits: 503dcaa5 by Rémi Bernon at 2025-11-07T16:18:42+01:00 win32u: Hoist get_thread_dpi in apply_window_pos.
- - - - - e28867de by Rémi Bernon at 2025-11-07T16:18:42+01:00 win32u: Use a private flag to indicate fullscreen windows.
- - - - - 21f58123 by Rémi Bernon at 2025-11-07T16:18:42+01:00 win32u: Get rid of is_window_rect_full_screen helper.
- - - - - 5aa01fd8 by Rémi Bernon at 2025-11-07T16:18:42+01:00 winex11: Prevent larger than monitor window resizes.
This prevents WMs like KWin or Mutter from automatically maximizing windows which frames are larger than their monitor area.
The maximization otherwise gets fed back into the win32 state, and often confuses applications which are operating a fullscreen window change by resizing a window then later changing its decoration.
It isn't possible to tell between a maximization initiated by the user and one that is initiated by the WM responding to a window resize from us. This heuristic should hopefully be good enough, as it is unlikely that the user will ever be able to resize a window in a such a way that its *frame* covers a monitor entirely. Note that if the user resizes a window such that its *visible* area covers a monitor entirely, we are going to make it fullscreen already anyway.
- - - - -
13 changed files:
- dlls/win32u/driver.c - dlls/win32u/input.c - dlls/win32u/sysparams.c - dlls/win32u/win32u_private.h - dlls/win32u/window.c - dlls/wineandroid.drv/window.c - dlls/winemac.drv/macdrv.h - dlls/winemac.drv/window.c - dlls/winewayland.drv/waylanddrv.h - dlls/winewayland.drv/window.c - dlls/winex11.drv/window.c - dlls/winex11.drv/x11drv.h - include/wine/gdi_driver.h
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/d4920360bffddaa5923a8da0b15f3a...