Bug 450247 - Context menus outside the screen border with qt5ct installed
Summary: Context menus outside the screen border with qt5ct installed
Status: RESOLVED UPSTREAM
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-14 18:42 UTC by Dorian Rudolph
Modified: 2022-02-21 21:05 UTC (History)
1 user (show)

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


Attachments
Dolphin context menu is outside the screen (9.62 KB, image/png)
2022-02-14 18:42 UTC, Dorian Rudolph
Details
Konsole context menu is also outside the screen (11.69 KB, image/png)
2022-02-14 18:42 UTC, Dorian Rudolph
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dorian Rudolph 2022-02-14 18:42:27 UTC
Created attachment 146730 [details]
Dolphin context menu is outside the screen

Context menus opened on the right screen border are shown outside the screen.
I would expect context menus to be positioned more to the left such that they are fully visible.

I attached screenshots from Konsole and Dolphin.

SOFTWARE/OS VERSIONS
Linux: Arch Linux 5.15.22-1-lts
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2

Note, I'm using sway/wayland and did not set up any KDE specific theme or settings.

I do have a second monitor, but it is positioned below the main monitor from which the screenshots are, so the menus are not overflowing onto another screen. The main monitor is 4K and the second is FHD, and positioned below in the center.
Comment 1 Dorian Rudolph 2022-02-14 18:42:48 UTC
Created attachment 146731 [details]
Konsole context menu is also outside the screen
Comment 2 Nate Graham 2022-02-16 17:48:02 UTC
Does it work when using the Breeze widget theme? I notice you're using Fusion.
Comment 3 Dorian Rudolph 2022-02-20 12:08:04 UTC
No, it doesn't work with Breeze. In case it's relevant, I configure the theme with qt5ct.
Comment 4 Nate Graham 2022-02-21 20:56:52 UTC
Oh, that's the problem. qt5ct is known to be incompatible with Plasma's own interface for customizing themes in System Settings. I would strongly recommend removing it.
Comment 5 Dorian Rudolph 2022-02-21 21:03:36 UTC
But I'm not using Plasma (not installed on my system). I am using sway. I can try another way to change the theme, but honestly, is the default Fusion theme (without using qt5ct) really related to the issue of context menus being outside the screen? I suspect the issue would be in the code that determines the context menu placement. 
But maybe this is more a qt/sway issue.
Comment 6 Nate Graham 2022-02-21 21:05:27 UTC
Oh I'm sorry, I totally  missed that.

If you're not using KWin or Breeze then there isn't any KDE code involved in placing the menu, so that would make it an issue in either Sway or Qt itself.