GNOME Bugzilla – Bug 774917
[wayland] child subsurfaces need to be placed relative to their parent
Last modified: 2016-11-24 08:36:07 UTC
Description: Following bug 774475, subsurfaces can now be a child of another GdkWindow (other than root), therefore those need to be placed relative to their parent and not assume the abs_x_abs_y is always (0,0).
Created attachment 340599 [details] [review] [PATCH master] wayland: Place subsurfaces relative to their parent Now that subsurfaces can be created as child of another GdkWindow (and not just the root window), they must be placed according to the location of their parent, i.e. the abs_x/abs_y must be updated and taken int account when placing and moving subsurfaces under Wayland.
Created attachment 340600 [details] [review] [PATCH gtk-3-22] wayland: Place subsurfaces relative to their parent Same for gtk-3-22
Created attachment 340603 [details] [review] [PATCH master] wayland: Place subsurfaces relative to their parent v2: Keep abs_x/abs_y at (0,0) for toplevel subsurfaces for obvious backward compatibility with existing subsurfaces (i.e. those with parent == root, before bug 774475)
Created attachment 340604 [details] [review] [PATCH gtk-3-22] wayland: Place subsurfaces relative to their parent v2 - Same as for master.
Review of attachment 340603 [details] [review]: ok
Review of attachment 340604 [details] [review]: ok
Comment on attachment 340603 [details] [review] [PATCH master] wayland: Place subsurfaces relative to their parent attachment 340603 [details] [review] pushed to git master as commit 39200e7 - wayland: Place subsurfaces relative to their parent
Comment on attachment 340604 [details] [review] [PATCH gtk-3-22] wayland: Place subsurfaces relative to their parent attachment 340604 [details] [review] pushed to branch gtk-3-22 as commit 6053036 - wayland: Place subsurfaces relative to their parent