Bug 485267

Summary: Window output readonly
Product: [Plasma] kwin Reporter: LinG <lingtjien>
Component: scriptingAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: xaver.hugl
Priority: NOR    
Version First Reported In: master   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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.
Comment 1 Zamundaaa 2025-10-17 11:11:32 UTC
Hmm, not sure if having the property be writable directly makes sense, but some API on the window itself would certainly seem better.