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

            Bug ID: 488898
           Summary: Scripting: API Reports non-primary monitor as output,
                    breaking Polonium KWin script
    Classification: Plasma
           Product: kwin
           Version: 6.1.0
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Quick Tiling
          Assignee: kwin-bugs-n...@kde.org
          Reporter: inli...@pm.me
  Target Milestone: ---

SUMMARY


STEPS TO REPRODUCE
1. Install KWin 6.10 and Polonium 6 (515f6990c848d935c56de5e12cec74ca4aab1baf)
2. Open Plasma (Wayland) session
3. Reproduced on 1080p and 1440p (primary) monitors.
4. Open any Window on 1440p monitor.

OBSERVED RESULT

Window is teleported to the non-primary 1080p monitor. As `window.output`
property in KWin Scripting API contains 1080p monitor output, instead of 1440p
monitor output.

EXPECTED RESULT

Window is behaving as on KWin 6.05 (opens on the same monitor).

SOFTWARE/OS VERSIONS


Linux/KDE Plasma: Arch Linux KDE Plasma 6.1
(available in About System)
KDE Plasma Version: 6.10
KDE Frameworks Version: 6.30 
Qt Version: 6.7.1

ADDITIONAL INFORMATION

Manually bisecting this issue points to commit

commit 52b92904dead8dedd8134d532f507e6f5bc78958 (HEAD -> bad-commit)
Author: Marco Martin <notm...@gmail.com>
Date:   Mon Apr 15 12:18:09 2024 +0000

    Quick tiling double buffereing

    The quicktileMode member now is just for the requested tile mode, base the
"real" mode only on m_tile.

    The requested tile mode is used for double buffering, to look and behave
just like requestedMAximizeMode() which is updated immediately, but needs to
acknowledge the configure request and render for quickTileMode() (and the right
tile() instanced to be associated) to be updated accordingly

 autotests/integration/move_resize_window_test.cpp |  27 ++++++++++---
 autotests/integration/quick_tiling_test.cpp       | 125
+++++++++++++++++++++++++++++++++++++++--------------------
 src/placementtracker.cpp                          |   4 +-
 src/tiles/quicktile.cpp                           |   4 ++
 src/tiles/tile.cpp                                |   6 ++-
 src/tiles/tilemanager.cpp                         |   6 +++
 src/tiles/tilemanager.h                           |   3 ++
 src/window.cpp                                    |  91
++++++++++++++++++++++++++++++-------------
 src/window.h                                      |  15 +++----
 src/x11window.cpp                                 |  10 ++++-
 src/x11window.h                                   |   1 +
 src/xdgshellwindow.cpp                            |  35 ++++++++++++-----
 12 files changed, 228 insertions(+), 99 deletions(-)

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

Reply via email to