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

            Bug ID: 409889
           Summary: Staking order is not accessible in KWin scripts
           Product: kwin
           Version: 5.16.2
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: scripting
          Assignee: kwin-bugs-n...@kde.org
          Reporter: ra...@eml.cc
  Target Milestone: ---

It looks like KWin does not exposes stacking order to its scripting system
anyhow. The only way to access list of managed clients by KWin is to call
allClientList() (or m_allClients) from workspace.h, which is not sorted at all.
And clients itself do not have any information about current stacking order.

The other way to access stacking order would be accessing root window property
'_NET_CLIENT_LIST_STACKING(WINDOW)'. But again — there is no way from KWin
scripting to access root window or its properties.

As for use cases. My general use case would be writing some advanced focus
switching plugins, which are not really belongs to KWin core. Indeed, X11
allows to write some plugins without a invovlment of windows manager. But that
way a lot of information is lost, e.g. list of activities to which some window
belongs to.

So I am requesting a feature to somehow provide stacking order to KWin
scripting, for example just giving direct access to workspace.stacking_order
list from workspace wrapper.

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

Reply via email to