Bug 485267 - Window output readonly
Summary: Window output readonly
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: scripting (show other bugs)
Version: master
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-09 10:32 UTC by LinG
Modified: 2024-04-09 10:32 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description LinG 2024-04-09 10:32:55 UTC
SUMMARY
The output property of the window class is readonly https://invent.kde.org/plasma/kwin/-/blob/master/src/window.h#L109 . However there is a method to change this property on the workspacewrapper https://invent.kde.org/plasma/kwin/-/blob/master/src/scripting/workspace_wrapper.h?ref_type=heads#L370 it would be nicer if the api just allowed setting the output property on the window class instead of having to use this wrapper method.

Side note: this workspace wrapper still has a lot of "client" everywhere, whereas the rest of the code base seems to have shifted from "client" in KWin 5 to "window" in KWin 6 (at least from my experience from what I've seen). So for consistency purposes it would be nice to rename all references to client in this file to window as well.