GNOME Bugzilla – Bug 775911
annotations don't move with content under Wayland
Last modified: 2017-09-28 12:13:36 UTC
If I open a PDF document with annotation with GDK_BACKEND=x11, then annotations move up and down with the document when I scroll it. When I run it with GDK_BACKEND=wayland instead they just pop up on the top left and never move! I assume this is because annotation are toplevel surfaces while they should be subsurfaces, which I think corresponds to POPUP windows in GTK+. Versions: gnome-shell-3.22.2-2.fc25.x86_64 mutter-3.22.2-1.fc25.x86_64 evince-3.22.1-1.fc25.x86_64
Hmm, this is not as easy as I Though it would be. We really need the annotations to be subsurfaces, but the API to force a window to be a subsurface gtk_window_set_use_subsurface() is private.. And this isn't really a popup. Maybe it should be re-implemented as a GtkPopover ? That would also have a nice "pointer" to the right annotation.
IIRC, we have talked about exploring the use GtkPopover for annotations. Currently, there are additional issues. For example, in continuous mode, when changing the pages, the annotation windows flicker a lot, because they are either fully shown or not (it looks like they resist to disappear, if you know what I mean :-) The flicker is also present when moving the page up or down. I believe that any patch in that direction would be welcomed.
*** This bug has been marked as a duplicate of bug 700292 ***