Bug 457748 - Review tools toolbar appears on all desktops when it's floating
Summary: Review tools toolbar appears on all desktops when it's floating
Status: RESOLVED UPSTREAM
Alias: None
Product: frameworks-kxmlgui
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.96.0
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL: https://bugreports.qt.io/browse/QTBUG...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-11 08:26 UTC by Marco
Modified: 2022-08-14 13:22 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Review tools toolbar (5.57 KB, image/png)
2022-08-11 08:26 UTC, Marco
Details
Video of the bug (3.70 MB, video/mp4)
2022-08-12 07:29 UTC, Marco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marco 2022-08-11 08:26:31 UTC
Created attachment 151243 [details]
Review tools toolbar

SUMMARY
If I open Okular on a virtual desktop, and then I open the review tools toolbar (e.g., with F6), the toolbar is shown on every virtual desktop, rather than the one where Okular has been opened. I guess this happens only when the toolbar is floating (see attached picture).


STEPS TO REPRODUCE
1. Open Okular on any virtual desktop
2. Open Okular's review tools toolbar (e.g., with F6)
3. Switch to another virtual desktop.

OBSERVED RESULT
The toolbar appears on all virtual desktops

EXPECTED RESULT
The toolbar should appear only on the virtual desktop where Okular was started.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Fedora 36
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION
This is a long-standing "bug". I remember this happening even years ago.
Comment 1 Luigi Toscano 2022-08-11 09:54:39 UTC
Do you run Okular on Wayland or X11?
Comment 2 Nate Graham 2022-08-11 17:43:42 UTC
.
Comment 3 Marco 2022-08-11 18:36:03 UTC
I am using X11. I can test wayland as well, if you need.
Comment 4 Marco 2022-08-11 18:40:45 UTC
Indeed, the issue occurs only on X11. In wayland, the toolbar remains on the right virtual desktop.
Actually, I think the issue in X11 is that the toolbar remains always visible, even when the okular window is minimized.
Comment 5 Albert Astals Cid 2022-08-11 22:33:33 UTC
Cannot reproduce here.

Can anyone else see that?
Comment 6 Marco 2022-08-12 07:29:03 UTC
Created attachment 151271 [details]
Video of the bug

I am also attaching a recording of the bug happening.
Comment 7 Laura David Hurka 2022-08-12 14:43:19 UTC
I remember this bug from the past, but can’t reproduce it now.
Other KXmlGui applications seem to have “lost” the bug too.

Using KDE Neon with X11, Plasma 5.25.4, Okular 22.04.3.
Comment 8 Marco 2022-08-12 18:41:49 UTC
My Fedora install started with like Plasma 5.1x. Might that be the issue?
Comment 9 Marco 2022-08-14 08:32:57 UTC
I was able to reproduce the bug on a clean install of Neon. Be sure to have some virtual desktops (I have 4).

1. Open a pdf in Okular.
2. Press F6 to show the annotations toolbar
3. Right-click on the bar and disable position lock
4. Drag the toolbar and make it float.
5. Close Okular *with the toolbar being visible*
6. Open the pdf again (the toolbar should now be visible and floating)
7. Switch virtual desktop, and see the toolbar sticking on screen.
Comment 10 Albert Astals Cid 2022-08-14 08:51:03 UTC
This is 99.99% broken at the kxmlgui level since i cna see it happening in dolphin, konqueror, etc.
Comment 11 Albert Astals Cid 2022-08-14 10:28:42 UTC
Ok so that 99.99% totally failed and this is sadly a Qt bug https://bugreports.qt.io/browse/QTBUG-105591
Comment 12 Marco 2022-08-14 10:41:55 UTC
Lol. At least we now precisely know where the bug lies!