[Webkit-unassigned] [Bug 210069] New: [GTK] Use gdk_window_move_to_rect() to position popup menus
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Apr 6 13:26:34 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=210069
Bug ID: 210069
Summary: [GTK] Use gdk_window_move_to_rect() to position popup
menus
Product: WebKit
Version: WebKit Nightly Build
Hardware: PC
OS: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: WebKitGTK
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mcatanzaro at gnome.org
CC: bugs-noreply at webkitgtk.org
Bug title: [GTK] Use gdk_window_move_to_rect() to position popup menus
WebPopupMenuProxyGtk::showPopupMenu currently uses gtk_window_move() to position the popup menu. Jonas doesn't like this; he says it can cause the menu to be positioned offscreen. Indeed, we have a longstanding bug where context menus near the bottom of the window will exceed the length of the screen. Jonas says Firefox doesn't have this problem, and that the fix would be to use gdk_window_move_to_rect() instead. Our code already has a FIXME to do this, with a pointer to a bug report asking for that API (which was private at the time) to be exported:
// FIXME: We can't ensure the menu will be on screen in Wayland.
// https://blog.gtk.org/2016/07/15/future-of-relative-window-positioning/
// https://gitlab.gnome.org/GNOME/gtk/issues/997
I looked into trying this, but it didn't look simple.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200406/1b2767ff/attachment.htm>
More information about the webkit-unassigned
mailing list