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

            Bug ID: 496598
           Summary: Identify primary screen in kwinscript
    Classification: Plasma
           Product: kwin
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: scripting
          Assignee: kwin-bugs-n...@kde.org
          Reporter: ppwwyy...@gmail.com
  Target Milestone: ---

In kwinscript I used to identify primary screen by simply
`workspace.screens[0]`. Some other open source code (e.g.
https://github.com/nclarius/KWin-window-positioning-scripts/blob/fe9d1641982912075f9debe68cc6b9afde7292d5/always-open-on-primary-screen/contents/code/main.js#L24-L25
) does the same.

After changing to wayland recently I found that `workspace.screens[0]` is no
longer the primary screen that's set in "Display Configuration". It seems there
is no reliable way in kwinscript to identify which screen is primary.



SOFTWARE/OS VERSIONS
Linux/KDE Plasma: archlinux; wayland
KDE Plasma Version: 6.2.3
KDE Frameworks Version:6.8.0 
Qt Version: 6.8.0

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

Reply via email to