Skip to content

GdkWin32: Configure as needed when fullscreening toplevels

Apply the fixes made by Chun-Wei Fan in [1] also when going fullscreen (and back). Fixes #4631 (closed)

Also set the SWP_FRAMECHANGED flag as written by Raymond Chen in "How do I switch a window between normal and fullscreen?" [2]

An important flag to pass here is SWP_FRAME­CHANGED, which tells the window manager to recalculate the window decorations (which we need it to do because we just changed them).

References:

  1. !3712 (merged)
  2. https://devblogs.microsoft.com/oldnewthing/20100412-00/?p=14353
Edited by Luca Bacci

Merge request reports

Loading