mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 18:09:10 +00:00
Jonas Ådahl
1d8bb58990
constraints: Use ConstraintInfo window size when placing
The frame rect will at this point not be set for Wayland popups, since the popup is placed and constrained before the actual buffer will be attached. To still be able to calculate a proper monitor to be used for constraining, use the ConstraintInfo::current dimensions instead, since they will have the expected size. This should not cause any issues with present paths since when a window is otherwise placed, it usually doesn't change monitor calculation result. This fixes opening a popup menu that would be positioned on the left edge of a not-left-most monitor, for example a 'File' menu on a window maximized on a second monitor. https://bugzilla.gnome.org/show_bug.cgi?id=773141
…
…
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%