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

            Bug ID: 522833
           Summary: Window size is not restored correctly when a rotated
                    secondary monitor is placed left of the primary
                    monitor on Wayland
    Classification: Frameworks and Libraries
           Product: frameworks-kconfig
      Version First 6.7.0
       Reported In:
          Platform: CachyOS
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

SUMMARY

On Plasma Wayland, newly opened windows get an incorrect tall/narrow initial
size when the built-in eDP display is rotated 90° and placed to the left of the
primary monitor.

This affects all applications I tested, not just one toolkit or application.

Moving the same built-in display to the right side of the monitor layout
immediately fixes the problem. Disabling the built-in display also fixes it.

Changing the scale of the built-in display from 150% to 100% does not fix the
issue. It only changes the size of the incorrectly sized windows, which appears
to follow the logical size of the built-in display.


STEPS TO REPRODUCE

1. Start a Plasma Wayland session.
2. Use a multi-monitor setup with:
   - a built-in eDP display rotated 90° into portrait orientation
   - an external monitor set as primary
3. Place the rotated eDP display to the left of the primary monitor.
4. Open new application windows.

For example, my layout is:

eDP-1:
- physical mode: 1920x1080
- rotated 90°
- scale: 150%
- logical geometry: 720x1280
- position: 0,0
- priority: 3

DP-2 (primary):
- mode: 3840x2160
- scale: 170%
- logical geometry: 2259x1271
- position: 720,9
- priority: 1

HDMI-A-1:
- mode: 1920x1080
- scale: 100%
- logical geometry: 1920x1080
- position: 2979,200
- priority: 2


OBSERVED RESULT

New windows open with an incorrect tall/narrow rectangular size.

The issue affects all applications I tested, so it does not appear to be
application-specific.

The behavior is consistently dependent on the monitor arrangement:

- rotated eDP display on the left -> incorrect window size
- same eDP display moved to the right -> normal window size
- eDP display disabled -> normal window size

I also tested changing eDP-1 scaling from 150% to 100%.

The bug still occurs at 100% scaling. The incorrectly sized window only becomes
larger, consistent with the larger logical geometry of the eDP display.
Therefore fractional scaling does not appear to be required to trigger the
issue.


EXPECTED RESULT

New windows should get a normal initial size based on the screen where they are
opened/placed, regardless of whether a rotated built-in display is positioned
to the left of the primary monitor.


ADDITIONAL INFORMATION

Session type:

$ echo $XDG_SESSION_TYPE
wayland

Relevant kscreen-doctor output:

Output: 1 DP-2
    enabled
    connected
    priority 1
    Geometry: 720,9 2259x1271
    Scale: 1.7
    Rotation: 1

Output: 2 HDMI-A-1
    enabled
    connected
    priority 2
    Geometry: 2979,200 1920x1080
    Scale: 1
    Rotation: 1

Output: 3 eDP-1
    enabled
    connected
    priority 3
    Geometry: 0,0 720x1280
    Scale: 1.5
    Rotation: 2

I can reproduce the issue consistently by moving only eDP-1 between the left
and right side of the layout, without changing the displays themselves.

The fact that changing eDP-1 from 150% to 100% changes the size of the
incorrectly sized windows, while not fixing the bug, may indicate that the eDP
output's logical geometry is involved in the initial window size calculation.

Could be related to https://bugs.kde.org/show_bug.cgi?id=460260

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

Reply via email to