Summary: | Scripting: API Reports non-primary monitor as output, breaking Polonium KWin script | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Alik Aslanyan <inline0> |
Component: | Quick Tiling | Assignee: | Alik Aslanyan <inline0> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | inline0, kde, nate, notmart |
Priority: | HI | Keywords: | regression |
Version: | 6.1.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/kwin/-/commit/7578f70b404acbceb53b057e8c483926badf7e21 | Version Fixed In: | 6.1.1 |
Sentry Crash Report: |
Description
Alik Aslanyan
2024-06-21 14:26:44 UTC
Bisecting https://invent.kde.org/plasma/kwin/-/merge_requests/5532 shows that bug is present from first commit 12226a891f8d2c77116cbaf9b97bde63b2af610e is the first bad commit commit 12226a891f8d2c77116cbaf9b97bde63b2af610e (HEAD) Author: Marco Martin <notmart@gmail.com> Date: Thu Mar 14 13:28:26 2024 +0100 Remove m_quickTileMode and base only on tiles This removes the tracking member and uses the tile information, removing a duplication of data and source of truth src/window.cpp | 48 ++++++++++++++++++++++++++++++++++-------------- src/window.h | 12 ++---------- 2 files changed, 36 insertions(+), 24 deletions(-) A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/5960 Git commit 47ee47dcc82bc38daf22d7fcf03fe0d35e3afe16 by Vlad Zahorodnii, on behalf of Alik Aslanyan. Committed on 25/06/2024 at 05:59. Pushed by vladz into branch 'master'. tiling: Add fallback path for the first Polonium tile After !5532 a new code path was triggered during Workspace::rearrange call. When first Polonium window opens on any screen, there is no active tile yet. This forces geometry calculation in Window::checkWorkspacePosition -> Window::ensureSpecialStateGeometry To return empty QRect, which depending on the screen arrangement will move window to the other screen. This confuses Polonium plugin, as it receives wrong outputChanged signal in scripting API. Signed-off-by: Alik Aslanyan <inline0@pm.me> M +0 -2 src/window.cpp https://invent.kde.org/plasma/kwin/-/commit/47ee47dcc82bc38daf22d7fcf03fe0d35e3afe16 Git commit 7578f70b404acbceb53b057e8c483926badf7e21 by Vlad Zahorodnii, on behalf of Alik Aslanyan. Committed on 25/06/2024 at 06:34. Pushed by vladz into branch 'Plasma/6.1'. tiling: Add fallback path for the first Polonium tile After !5532 a new code path was triggered during Workspace::rearrange call. When first Polonium window opens on any screen, there is no active tile yet. This forces geometry calculation in Window::checkWorkspacePosition -> Window::ensureSpecialStateGeometry To return empty QRect, which depending on the screen arrangement will move window to the other screen. This confuses Polonium plugin, as it receives wrong outputChanged signal in scripting API. Signed-off-by: Alik Aslanyan <inline0@pm.me> (cherry picked from commit 47ee47dcc82bc38daf22d7fcf03fe0d35e3afe16) M +0 -2 src/window.cpp https://invent.kde.org/plasma/kwin/-/commit/7578f70b404acbceb53b057e8c483926badf7e21 |