Bug 428378 - Tool dropdown menu opens on wrong monitor
Summary: Tool dropdown menu opens on wrong monitor
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.11.2
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-28 09:14 UTC by krzmbrzl
Modified: 2020-10-28 18:45 UTC (History)
2 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 krzmbrzl 2020-10-28 09:14:00 UTC
SUMMARY

I have a dual monitor setup (2x 1920x1080) where I am extending my Desktop to the other monitor in order to have more screen space to work with. I am using the "extend to the left" option while the left screen is marked as my primary screen.

If I open Okular on my right screen and open one of the dropdown menus mentioned below, the menu doesn't open where my cursor is. In fact it doesn't even open on the correct (right) screen. Instead it opens at the right edge of my left screen (even though Okular is completely rendered on the right one and there'd be plenty of space to render the menu on it).
The y-coordinate of the opened menu seems to be chose properly. It is only the x-coordinate that seems to be affected.

STEPS TO REPRODUCE
1. Open Okular on the right screen
2. Open one of the dropdown menus mentioned below

AFFECTED MENUS
- Dropdown for switching the selection mode (text, area, table)
- Dropdown for quick annotations (menu only shows "Configure annotations")
- Dropdown for choosing the arrow annotation type
- Dropdown for choosing the "marker" annotation type ("Approved", "Not approved", etc)

UNAFFECTED MENUS:
- All dropdown menus for the entries in the actual menu bar (File, View, Edit, ...)
- Dropdown for selecting zoom level


SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.20
KDE Plasma Version: 5.20.1
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.0
Kernel Version: 5.4.0-52-generic
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-4770 CPU @ 3.40GHz
Memory: 7,7 GiB of RAM
Graphics Processor: NVE4
Comment 1 Wolfgang Bauer 2020-10-28 10:51:24 UTC
Sounds like https://bugreports.qt.io/browse/QTBUG-84462 to me, should be fixed in Qt 5.15.1.
Comment 2 Laura David Hurka 2020-10-28 12:10:33 UTC
You could right-click the toolbar, select Configure Toolbars, and add the “View Mode” menu to the (okularpart) toolbar. If the view mode menu opens on the correct position, this is an Okular bug. The view mode menu is the only toolbar menu which isn’t customized by Okular code.
Comment 3 krzmbrzl 2020-10-28 13:51:12 UTC
I can confirm that the problem is the same for the view mode dropdown.

Therefore I assume that this is indeed the same as the linked Qt bug.

Should I close this report as an upstream bug then (and if so: how?)?
Comment 4 Albert Astals Cid 2020-10-28 18:45:48 UTC
Let's hope it's QTBUG-84462

krzmbrzl if you update to a newer Qt and still fails, maybe give us a heads up