Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gtk gtk
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,605
    • Issues 1,605
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 219
    • Merge requests 219
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • gtkgtk
  • Issues
  • #1477
Closed
Open
Issue created Nov 24, 2018 by Marc Micalizzi@marcmicalizzi

Positions in win32 wrong with multiple monitors and left-most not being main display

On origin/master, currently on 8d7bf3ad

Everything noted in this bug works fine if the left-most monitor is the Main Display.

On a win32 (msvc, but probably not compiler specific) with multiple monitors, and the leftmost monitor NOT being the main display (open windows Display Settings, select a non-left-most monitor on the "Select and rearrange displays" graphic, scroll down, check the "Make this my main display" checkbox) [in my case I have 3 monitors, and the center monitor is the main display]

Start gtk4-demo.exe, right click somewhere with text to bring up the copy/cut/paste etc. context menu. It will be in the wrong place (the far right side of the main display)

If you place the window on the left-most monitor, and open the context menu, it will appear on the main display in the same position it should be on the left-most monitor.

Additionally, tooltips seem to be affected by this as well, however if the left-most monitor is not the main display, they don't work at all, as the coordinates never match up properly. (my use case was with gtk_tree_view_set_tooltip_column which is currently missing from the demo applications, but it seems to have the same root cause as the popup menus)

Edited Nov 24, 2018 by Marc Micalizzi
Assignee
Assign to
Time tracking