[Wayland-bugs] [Bug 769402] regression in menu positioning on wayland
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Fri Aug 5 10:00:42 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=769402
Jonas Ådahl <jadahl at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #332696|0 |1
is obsolete| |
--- Comment #9 from Jonas Ådahl <jadahl at gmail.com> ---
Created attachment 332789
--> https://bugzilla.gnome.org/attachment.cgi?id=332789&action=edit
wayland: Don't include shadow margins in window size
The GdkWindow::width and GdkWindow::height fields represent the window
geometry size, not including any possible shadow margin. The Wayland
backend ignored this and appended it anyway, causing various problems
here and there.
This fixes an relative popup positioning when a menu expands upwards
or to the right from a anchor rectangle. The reason was that since the
size was "in flux" between gtk/'s and gdk/wayland/'s understanding of
size, if the position calculation happened to be done in state, but
actual positioning in the other, the position was incorrect.
---
This patch replaces "wayland: Don't append shadow width to window size".
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20160805/b785d89f/attachment.html>
More information about the wayland-bugs
mailing list