Commit 2bc13c89 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

PipeWireThumbnail: Port to KPipeWire

It's the same components just in a different place. No need to do much
porting.
parent 20942617
Pipeline #182779 passed with stage
in 2 minutes and 38 seconds
......@@ -19,6 +19,7 @@ set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modul
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(ECMFindQmlModule)
include(ECMInstallIcons)
include(ECMMarkAsTest)
include(ECMMarkNonGuiExecutable)
......@@ -173,6 +174,8 @@ pkg_check_modules(XORGLIBINPUT xorg-libinput IMPORTED_TARGET)
pkg_check_modules(EVDEV xorg-evdev>=2.8.99.1 IMPORTED_TARGET)
pkg_check_modules(XORGSERVER xorg-server IMPORTED_TARGET)
ecm_find_qmlmodule(org.kde.pipewire 0.1)
find_package(Synaptics)
set_package_properties(Synaptics PROPERTIES TYPE OPTIONAL)
add_feature_info("Synaptics" SYNAPTICS_FOUND "Synaptics libraries are needed for the synaptics touchpad KCM")
......
......@@ -8,13 +8,13 @@ import QtQuick 2.15
import QtQuick.Window 2.15
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.taskmanager 0.1 as TaskManager
import org.kde.pipewire 0.1 as PipeWire
// opacity doesn't work in the root item
Item {
anchors.fill: parent
TaskManager.PipeWireSourceItem {
PipeWire.PipeWireSourceItem {
id: pipeWireSourceItem
enabled: false // Must be set in pipewiresourceitem.cpp so opacity animation can work
......@@ -25,7 +25,7 @@ Item {
opacity: enabled ? 1 : 0
TaskManager.ScreencastingRequest {
PipeWire.ScreencastingRequest {
id: waylandItem
uuid: toolTipDelegate.Window.visibility === Window.Hidden ? "" : thumbnailSourceItem.winId
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment