https://bugs.kde.org/show_bug.cgi?id=444529

            Bug ID: 444529
           Summary: [Wayland] Menus sometimes open at the wrong horizontal
                    position on dual-monitor setups
           Product: kwin
           Version: 5.23.2
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: wayland-generic
          Assignee: kwin-bugs-n...@kde.org
          Reporter: sjurberengal+...@gmail.com
  Target Milestone: ---

SUMMARY
On a dual-monitor setup where the left monitor is smaller than the right, menus
opened on the right monitor have the wrong horizontal position if the window
coordinate of the click is outside the range of possible screen coordinates of
the left monitor.

The range of possible coordinates take into account the vertical position
relative to the right monitor, so if for example the top of the left monitor is
set to 100px below the top of the right monitor, the vertical span of the left
monitor is 100-1180 (on a 1080p monitor). The horizontal coordinate seems to
always start at 0.

It's the window coordinate of the open window that matters, not the screen
coordinate on the right screen. This makes the bug very noticeable if the left
monitor isn't top-aligned vertically since every menubar menu opens on the far
right and is very hard to use. But the bug still appears when clicking to the
right or below the left monitor size. You just need a large enough window and a
reason to open a menu in those extreme positions.

The vertical position is correct, but the horizontal position is set equal to
the max horizontal position of the left monitor.

STEPS TO REPRODUCE
1. Have two monitors with different resolutions (scaling works)
2. Put the smallest monitor left of the larger in the display configuration
system setting. It's easiest to see if the top of the left monitor is below the
top of the right monitor.
3. Open Kate (or another KDE program) on the right monitor and open a menu
(from the menubar, right-click or dropdown) in different positions on the
window

OBSERVED RESULT
The opened menu sometimes opens far to the right, at the max horizontal
position of the left monitor.

EXPECTED RESULT
The opened menu always appears under or right next to the mouse.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Archlinux (5.14.14-arch1-1)
KDE Plasma Version: 5.23.2
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
This doesn't happen on X11. Most programs have this issue, but not all of them.
Every KDE app I've tried has this bug, but firefox and KeePassXC doesn't, and
right-clicking on the desktop also works as expected.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to