HomePhabricator

Viewports: Improve menu positioning in multi-monitor setups.

Description

Viewports: Improve menu positioning in multi-monitor setups.

This change uses mouse position for initial positioning of popup menus. It ensures that menu appears in expected location on monitor mouse is currently hovering. This change fixes incorrect menu positioning (permanent or on the first frame) when menu item spans multiple monitors.

Details

Provenance
Rokas Kupstys <rokups@zoho.com>Authored on Feb 24 2020, 2:14 PM
ocornut <omarcornut@gmail.com>Committed on Feb 25 2020, 3:05 PM
YbalridPushed on Apr 3 2020, 11:11 PM
Parents
rIMGUI7d80a8f4f502: Backends: Fix ImGui_ImplSDL2_InitForMetal() in docking branch.
Branches
Unknown
Tags
Unknown

Event Timeline

ocornut <omarcornut@gmail.com> committed rIMGUI3ff13edad91b: Viewports: Improve menu positioning in multi-monitor setups. (authored by Rokas Kupstys <rokups@zoho.com>).Feb 25 2020, 3:05 PM