GNOME Bugzilla – Bug 754839
wayland: Make subsurface desynchronized after first parent surface frame
Last modified: 2015-09-15 00:12:54 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.
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.
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.
Attachment 311084 [details] pushed as 7c4c8b9 - wayland: Make subsurface desynchronized after first parent surface frame