After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 772795 - Stop using gdk_monitor_get_workarea() for calculating popup positions
Stop using gdk_monitor_get_workarea() for calculating popup positions
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: Other
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: WaylandRelated
 
 
Reported: 2016-10-12 10:02 UTC by Jonas Ådahl
Modified: 2018-05-02 17:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jonas Ådahl 2016-10-12 10:02:04 UTC
There are still a few places where we use gdk_monitor_get_workarea() and the "window monitor" and absolute positioning to calculate how to position popups. This doesn't work on backends that doesn't have global positioning, such as Wayland and Mir.

All these places should be changed to use gdk_window_move_to_rect() instead.

Some places that needs to be ported include:

 * GtkComboBox list position
 * GtkEntryCompletion popup window
 * GtkTooltip
 * GtkTreeView search window

Atfer that, gdk_monitor_get_workarea() should probably be deprecated together with gdk_display_get_monitor_at_window().
Comment 1 GNOME Infrastructure Team 2018-05-02 17:35:47 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/683.