Skip to content

Win32: a fullscreen window is shown on the primary monitor #1193

Backlog

Description

@buggins

Win32Window.show() places a WindowFlag.Fullscreen window with SetWindowPos(_hwnd, HWND_TOPMOST, 0, 0, rc.width, rc.height, SWP_SHOWWINDOW), ignoring rc.left and rc.top from getScreenDimensions(). A fullscreen window created on a secondary monitor is moved to (0, 0), i.e. onto the primary monitor, with the secondary monitor's size. Since #1183, if the primary monitor has another scale, that move also triggers WM_DPICHANGED and changes SCREEN_DPI. Fix: pass rc.left, rc.top.

Found in the review of PR #1192.

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions