Bug 486834

Summary: The `desktop` property of a window always returns `null` under wayland
Product: [Plasma] kwin Reporter: green
Component: scriptingAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version First Reported In: 6.0.4   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description green 2024-05-10 07:04:14 UTC
The `desktop` property of `window` objects is always `null` under wayland. Probably related to https://bugs.kde.org/show_bug.cgi?id=486831 where `workspace.currentDesktop` returns `null`.

STEPS TO REPRODUCE
Write a kwinscript that uses the `desktop` property of a `window` (i.e. one of the objects in the array returned by `workspace.windowList`)

OBSERVED RESULT

`null` is returned

EXPECTED RESULT

An integer representing the current virtual desktop should be returned.

SOFTWARE/OS VERSIONS
Linux:  Archlinux
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Comment 1 green 2024-05-12 02:51:58 UTC
Used the `desktops` property instead which works for my script so closing this