From 18c95fae4aec2f9da465c5f42d7ae13fe65f2aba Mon Sep 17 00:00:00 2001 From: Dmitry Litoshik Date: Fri, 9 Oct 2026 15:55:58 -0400 Subject: [PATCH] wayland/lock: emit lockStateChanged on unlock --- changelog/next.md | 1 + src/wayland/session_lock.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog/next.md b/changelog/next.md index b65b83f..40da6fe 100644 --- a/changelog/next.md +++ b/changelog/next.md @@ -3,3 +3,4 @@ - Fixed ScriptModel not sending role updates on changed data that compares equal by key or structure. - Fixed Hyprland workspaces keeping their old id after Hyprland changes it. - Fixed desktop entries being parsed incorrectly with trailing whitespace or CRLF line endings. +- Fixed `WlSessionLock.locked` changes not being emitted on unlock. diff --git a/src/wayland/session_lock.cpp b/src/wayland/session_lock.cpp index 43d80e2..4ced844 100644 --- a/src/wayland/session_lock.cpp +++ b/src/wayland/session_lock.cpp @@ -179,8 +179,9 @@ void WlSessionLock::unlock() { this->surfaces.clear(); + auto wasLocked = this->isLocked(); if (this->manager) this->manager->unlock(); - if (this->isLocked()) emit this->lockStateChanged(); + if (wasLocked) emit this->lockStateChanged(); } void WlSessionLock::onScreensChanged() {