Bug 161087 - Typed text in Impress text box can be out of magnification box when using GNOME's accessibility Zoom
Summary: Typed text in Impress text box can be out of magnification box when using GNO...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
24.8.0.0 alpha0+
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: accessibility
Depends on:
Blocks: a11y-Linux Wayland GTK3
  Show dependency treegraph
 
Reported: 2024-05-15 14:22 UTC by Stéphane Guillou (stragu)
Modified: 2024-05-16 11:05 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Helper script for analysis from https://bugreports.qt.io/browse/QTBUG-95725 (3.06 KB, text/x-python)
2024-05-16 10:59 UTC, Michael Weghorn
Details
Screencast of helper script showing wrongly reported position (4.24 MB, video/x-matroska)
2024-05-16 11:04 UTC, Michael Weghorn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stéphane Guillou (stragu) 2024-05-15 14:22:47 UTC
Steps:
1. Test with a recent daily build at 24.8alpha0+ or above, to make sure the fixes associated with bug 159369 are included
2. Open Impress
3. Set GNOME's Accessibility Zoom to a high magnification, e.g. 6×, and turn it on
4. Start typing in the slide's Title box: the magnifier follows the cursor, the full character height is visible
5. Press Enter: the view jumps up, caret position not visible
6. Type a word: less of the character height is visible (two thirds in my test)
7. Press Enter: the view jumps up, caret position not visible
8. Type a word: even less of the character height is visible (one third in my test)

Expected: caret and types character always visible (if they can fit in the magnification frame).

Ubuntu 22.04 + GNOME 42.9 + Wayland and:
Version: 24.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 658a212585c56540a17c41111e6829716d4ef4e3
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US

Not reproduced with a MetaWindowXwayland window.
Comment 1 Jim Greene 2024-05-15 16:48:31 UTC
I believe this is the successor to bug 159369, initiated based on my report. Being visually impaired and not very technical, it’s difficult for me to follow. This is labeled as a bug in Impress, but I originally reported it for Writer. I understand it exists in more than one Libreoffice application. However, as requested, I used daily builds, and I still have the issue of typed text disappearing below the bottom of the screen view as I increase magnification, only when using Wayland. When using X11 or one of the terminal command workarounds I was given, all is normal. Not knowing any better, I assumed it was a shortcoming in Wayland, not Libreoffice.
Comment 2 Michael Weghorn 2024-05-16 10:18:08 UTC
(In reply to Jim Greene from comment #1)
> I believe this is the successor to bug 159369, initiated based on my report.
> Being visually impaired and not very technical, it’s difficult for me to
> follow. This is labeled as a bug in Impress, but I originally reported it
> for Writer. I understand it exists in more than one Libreoffice application.
> However, as requested, I used daily builds, and I still have the issue of
> typed text disappearing below the bottom of the screen view as I increase
> magnification, only when using Wayland. When using X11 or one of the
> terminal command workarounds I was given, all is normal. Not knowing any
> better, I assumed it was a shortcoming in Wayland, not Libreoffice.

@Jim: Do you still see that issue with Writer on Wayland? If so, please add more details in bug 159369 (in particular: info from "Help" -> "About LibreOffice", what distro + GNOME Shell version you're using), as that would indicate that that bug is not fixed for you for some reason, while it's fine for both, Stéphane and me now.

The bug here is a different one, specific to Impress.
Comment 3 Michael Weghorn 2024-05-16 10:32:59 UTC
I can reproduce.

(In reply to Stéphane Guillou (stragu) from comment #0)
> Not reproduced with a MetaWindowXwayland window.

For me, GDK_BACKEND=x11 doesn't fix it. (It seems it' slightly less bad, but if pressing Enter a few more times, the issue is essentially the same.)

Version: 24.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 601ae6910288c7f3abdbb11de644c17b3b2d0cb5
CPU threads: 32; OS: Linux 6.7; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: CL threaded
Comment 4 Michael Weghorn 2024-05-16 10:35:13 UTC
(In reply to Michael Weghorn from comment #2)
> (In reply to Jim Greene from comment #1)
> > I believe this is the successor to bug 159369, initiated based on my report.
> > Being visually impaired and not very technical, it’s difficult for me to
> > follow. This is labeled as a bug in Impress, but I originally reported it
> > for Writer. I understand it exists in more than one Libreoffice application.
> > However, as requested, I used daily builds, and I still have the issue of
> > typed text disappearing below the bottom of the screen view as I increase
> > magnification, only when using Wayland. When using X11 or one of the
> > terminal command workarounds I was given, all is normal. Not knowing any
> > better, I assumed it was a shortcoming in Wayland, not Libreoffice.
> 
> @Jim: Do you still see that issue with Writer on Wayland? If so, please add
> more details in bug 159369 (in particular: info from "Help" -> "About
> LibreOffice", what distro + GNOME Shell version you're using), as that would
> indicate that that bug is not fixed for you for some reason, while it's fine
> for both, Stéphane and me now.
> 
> The bug here is a different one, specific to Impress.

CC'ing Jim: Please see above. (I only noticed now you weren't subscribed to this bug report, so my above comment likely went unnoticed.)
Comment 5 Michael Weghorn 2024-05-16 10:59:56 UTC
Created attachment 194148 [details]
Helper script for analysis from https://bugreports.qt.io/browse/QTBUG-95725
Comment 6 Michael Weghorn 2024-05-16 11:04:14 UTC
Created attachment 194149 [details]
Screencast of helper script showing wrongly reported position

Using the helper script from https://bugreports.qt.io/browse/QTBUG-95725 (now also attached here as attachment 161087 [details]), it can be seen that the wrong positions are reported, even with no scaling/zoom applied and also in a KDE Plasma session. As global/screen coords don't work on Wayland, this needs to use GDK_BACKEND=x11 when running on Wayland.

1) start the helper script that highlights the reported cursor position:

    GDK_BACKEND=x11 /tmp/position.py

2) start LO:

    GDK_BACKEND=x11 SAL_USE_VCLPLUGIN=gtk3 ./instdir/program/soffice.bin --impresss

3) start typing

The helper script highlights the currently reported caret position. As can be seen in the attached screencast, this one is incorrect, and becomes more and more incorrect when moving more lines down.
Comment 7 Michael Weghorn 2024-05-16 11:05:49 UTC
(In reply to Michael Weghorn from comment #6)
> Using the helper script from https://bugreports.qt.io/browse/QTBUG-95725
> (now also attached here as attachment 161087 [details]), (...)

Sorry, the correct attachment is actually attachment 194148 [details].