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 754839 - wayland: Make subsurface desynchronized after first parent surface frame
wayland: Make subsurface desynchronized after first parent surface frame
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Wayland
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2015-09-10 14:25 UTC by Jonas Ådahl
Modified: 2015-09-15 00:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
wayland: Make subsurface desynchronized after first parent surface frame (5.80 KB, patch)
2015-09-10 14:25 UTC, Jonas Ådahl
committed Details | Review

Description Jonas Ådahl 2015-09-10 14:25:52 UTC
This fixes an issue where tooltips would be drawn at the top left corner of the window for about one frame before was placed in the correct position.
Comment 1 Jonas Ådahl 2015-09-10 14:25:59 UTC
Created attachment 311084 [details] [review]
wayland: Make subsurface desynchronized after first parent surface frame

Initially the subsurface will be in synchronized mode and we will leave
it like this until the first time the parent surface has been committed.
The reason for this is because the subsurface position will be applied
as part of the parent surface state, and we need to synchronize the
initial position with the initial frame, so that we don't accidentally
draw the subsurface at the default position (0, 0) which would happen in
desynchronized mode if the subsurface content is committed before the
next parent surface commit.
Comment 2 Matthias Clasen 2015-09-13 05:19:58 UTC
Review of attachment 311084 [details] [review]:

I was going to say: a signal just for this purpose looks a bit heavy, but maybe there are not better alternatives.
Comment 3 Jonas Ådahl 2015-09-15 00:12:47 UTC
Attachment 311084 [details] pushed as 7c4c8b9 - wayland: Make subsurface desynchronized after first parent surface frame