mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 22:33:08 +00:00
Contributes to #317 This refactor changes WindowMaximizedTracker from being a Singleton, and allows for it to be created in a way such that screens can be filtered out. This fixes external screens from having their homescreen "zoom out" when an app is maximized on another screen.
20 lines
543 B
CMake
20 lines
543 B
CMake
# SPDX-FileCopyrightText: 2023 Devin Lin <devin@kde.org>
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
ecm_add_qml_module(windowplugin URI org.kde.plasma.private.mobileshell.windowplugin GENERATE_PLUGIN_SOURCE)
|
|
|
|
target_sources(windowplugin PRIVATE windowutil.cpp)
|
|
|
|
ecm_target_qml_sources(windowplugin SOURCES qml/WindowMaximizedTracker.qml)
|
|
|
|
target_link_libraries(windowplugin PRIVATE
|
|
Qt::Qml
|
|
Qt::DBus
|
|
Qt::Gui
|
|
Qt::Quick
|
|
Plasma::KWaylandClient
|
|
KF6::Service
|
|
KF6::ConfigWidgets
|
|
)
|
|
|
|
ecm_finalize_qml_module(windowplugin)
|