Commit graph

7 commits

Author SHA1 Message Date
Nicolas Fella
8e8f794f02 Use workspace to find output
We want the LogicalOutput from workspace(), not the BackendOutput
2025-12-02 20:14:03 +01:00
Nicolas Fella
37dcef56d9 Adjust to renamed KWin::Output class 2025-11-26 17:46:31 +01:00
Luis Büchi
0d2e15cea4 taskswitcher: add QML type registration to taskmodel 2025-07-06 00:27:02 +02:00
Nicolas Fella
25a3706d7f [mobiletaskswitcher] Add missing dependency to QML module
The module exposes TaskFilterModel, which extends QSortFilterProxyModel

QSortFilterProxyModel is registered to QML as part of the QtCore module, so we need to add that to DEPENDENCIES for tools like qmllint to work properly
2025-07-04 14:59:13 +02:00
Luis Büchi
5d33295443 add type annotations to taskswitcher QML and do more explicit typing 2025-06-26 16:30:41 +02:00
Roy Kollen Svendsen
2b1f66ecdc taskswitcher: Fix build when KWin is built without activities support
Fixes:
../kwin/mobiletaskswitcher/plugin/taskfiltermodel.cpp:81:40: error: ‘class KWin::Workspace’ has no member named ‘activities’; did you mean ‘ActivityRaise’?
   81 |     auto activity = Workspace::self()->activities()->current();
      |                                        ^~~~~~~~~~
      |                                        ActivityRaise

This occurs when KWin is built with -DKWIN_BUILD_ACTIVITIES=OFF:

https://invent.kde.org/plasma/kwin/-/blob/master/src/workspace.h#L424
2025-06-10 09:12:25 -04:00
Devin Lin
bbac7e98b4 taskswitcher: Switch to declarative effect
This switches the kwin effect to be a declarative effect. However, for
now I have retained much of the logic that exists in cpp as a QML
plugin.

Fixes https://invent.kde.org/plasma/plasma-mobile/-/issues/448

Also implements https://invent.kde.org/plasma/plasma-mobile/-/issues/408 now that we can access the QML api
2025-03-01 21:26:47 +00:00