Bug 444427 - Presentation toolbar disappears when cursor exits to left of page jump input
Summary: Presentation toolbar disappears when cursor exits to left of page jump input
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 21.08.2
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-26 12:55 UTC by Florine W. Dekker
Modified: 2021-11-24 00:28 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florine W. Dekker 2021-10-26 12:55:37 UTC
SUMMARY
In presentation mode, Okular incorrectly detects when the cursor leaves the toolbar in a specific case. This results in the toolbar unexpectedly closing and is slightly frustrating when trying to navigate during a presentation.

STEPS TO REPRODUCE
1. Open any PDF in presentation mode (Ctrl + Shift + P).
2. Move the cursor all the way to the top so that the toolbar (with some navigation tools and markers for drawing on the slide) is shown.
3. Move the cursor into the input field containing the current slide number.
4. Move the cursor to the left so that it exist the input field.

OBSERVED RESULT
The toolbar disappears/closes, as if the mouse has left the toolbar.

EXPECTED RESULT
The toolbar remains visible, because the cursor did not leave the toolbar.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian Bookworm (testing)
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
In step 4, if the cursor is moved up, down, or to the right instead of to the left, no unexpected behaviour occurs.
Comment 1 Albert Astals Cid 2021-10-26 20:03:35 UTC
Can not reproduce, are you using Plasma/wayland by any chance?
Comment 2 Florine W. Dekker 2021-10-26 20:42:31 UTC
No, I'm not using Plasma/Wayland.

At first it didn't look like I could reproduce the bug on my second machine, but after some more experimentation it looks like it only occurs on the top-left-most monitor. I can reproduce the bug on any monitor by moving the top-left corner of that monitor to absolute coordinates (0, 0) in the display settings and then performing the steps in the bug report on that monitor. (If no monitor is at (0, 0), then the bug will occur on the left-most monitor with y-coordinate 0.)
Comment 3 Albert Astals Cid 2021-10-26 21:07:25 UTC
I think the problem is not 0x0, the problem is when you move the mouse over the tooltip.

Which in a sense makes sense since you're not over the toolbar anymore ^_^

But obviously doesn't make sense at all, so should be fixed.
Comment 4 Florine W. Dekker 2021-10-26 21:54:18 UTC
I didn't see any tooltips while triggering this bug, so I think we're talking about different things here. Though I agree that hovering over the "Previous page" tooltip should not close the tooltip.

After even more trying out, I've found that the bug I'm speaking of isn't actually a bug. Apparently I had my workspace set up so that moving the cursor to the top-left corner of the monitor shows all windows. (See "Settings > Workspace Behavior > Screen Edges > Top-left corner > Present Windows - All Desktops".) After settings that to "No Action", the "bug" no longer occurs. This setting created a small overlay in front of Okular when the cursor is at the top-left, which made Okular think that the cursor left the toolbar. You can also reproduce this behaviour by opening presentation mode on any monitor and then moving another window on top of where the toolbar will be, moving the cursor to the top in Okular, and then moving the cursor into the other window.

I think it might be better if Okular didn't close the toolbar if the cursor hovers over another window, only when it actually explicitly detects that the cursor is inside Okular but outside the toolbar. Though I suppose some people might disagree(?) and I don't have a strong opinion about this.
Comment 5 Bug Janitor Service 2021-11-08 16:38:04 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/503
Comment 6 Albert Astals Cid 2021-11-24 00:28:34 UTC
Git commit 1f00898af00fc414fe7ad486e521fc56159dcb5f by Albert Astals Cid.
Committed on 23/11/2021 at 23:41.
Pushed by aacid into branch 'release/21.12'.

Presentation: Don't hide toolbar if we're not really leaving the window

M  +32   -0    part/presentationwidget.cpp
M  +1    -0    part/presentationwidget.h

https://invent.kde.org/graphics/okular/commit/1f00898af00fc414fe7ad486e521fc56159dcb5f