lid behavior watcher to lock session #115
@@ -26,8 +26,6 @@ add_compile_options(
|
||||
if("plugin" IN_LIST ENABLE_MODULES)
|
||||
add_subdirectory(Plugins)
|
||||
|
||||
add_custom_target(fix-cc
|
||||
COMMAND sed -i "s/-mno-direct-extern-access/-fno-direct-access-external-data/g" "${CMAKE_BINARY_DIR}/compile_commands.json")
|
||||
endif()
|
||||
|
||||
if("shell" IN_LIST ENABLE_MODULES)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import Quickshell
|
||||
import ZShell
|
||||
import QtQuick
|
||||
|
||||
Scope {
|
||||
|
||||
@@ -9,6 +9,7 @@ import qs.Components
|
||||
Scope {
|
||||
id: root
|
||||
|
||||
required property var lid
|
||||
property alias lock: lock
|
||||
property int seenOnce: 0
|
||||
|
||||
@@ -21,6 +22,13 @@ Scope {
|
||||
onRequestLock: lock.locked = true
|
||||
onUnlock: lock.locked = false
|
||||
|
||||
Connections {
|
||||
target: root.lid
|
||||
function onRequestLock(): void {
|
||||
lock.locked = true
|
||||
}
|
||||
}
|
||||
|
||||
LockSurface {
|
||||
id: lockSurface
|
||||
|
||||
|
||||
@@ -32,7 +32,6 @@ class LidWatcher : public QObject {
|
||||
LidState m_state = Opened;
|
||||
|
||||
|
||||
void extracted();
|
||||
void onPropertiesChanged(const QString& interface,
|
||||
|
AramJonghu marked this conversation as resolved
Outdated
|
||||
const QVariantMap& changed,
|
||||
const QStringList& invalidated);
|
||||
|
||||
Reference in New Issue
Block a user
extracted()is declared but never implemented in the.cppfile.