Bug 486834 - The `desktop` property of a window always returns `null` under wayland
Summary: The `desktop` property of a window always returns `null` under wayland
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: scripting (other bugs)
Version First Reported In: 6.0.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-10 07:04 UTC by green
Modified: 2024-05-12 02:52 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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