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 775911 - annotations don't move with content under Wayland
annotations don't move with content under Wayland
Status: RESOLVED DUPLICATE of bug 700292
Product: evince
Classification: Core
Component: pdf annotations
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-12-09 23:03 UTC by Olivier Crête
Modified: 2017-09-28 12:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Olivier Crête 2016-12-09 23:03:43 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
Comment 1 Olivier Crête 2016-12-09 23:58:32 UTC
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.
Comment 2 Germán Poo-Caamaño 2017-09-27 14:15:56 UTC
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.
Comment 3 Germán Poo-Caamaño 2017-09-28 12:13:36 UTC

*** This bug has been marked as a duplicate of bug 700292 ***