From 2192abc058f84cfdcd09a0a083c22733c25b8e43 Mon Sep 17 00:00:00 2001
From: 27Onion Nebell <zzy20080201@gmail.com>
Date: Mon, 22 Jun 2026 18:36:37 +0800
Subject: [PATCH 1/2] fix: use explicit cast for `m_pSeat`

---
 src/core/Seat.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/Seat.cpp b/src/core/Seat.cpp
index 5d1c7153..9c2cd614 100644
--- a/src/core/Seat.cpp
+++ b/src/core/Seat.cpp
@@ -169,5 +169,5 @@ void CSeatManager::registerCursorShape(SP<CCWpCursorShapeManagerV1> shape) {
 }
 
 bool CSeatManager::registered() {
-    return m_pSeat;
+    return static_cast<bool>(m_pSeat);
 }

From eaf1d7599d8f3749cdcff2b2acc2d9ca4471a9a0 Mon Sep 17 00:00:00 2001
From: 27Onion Nebell <zzy20080201@gmail.com>
Date: Tue, 23 Jun 2026 04:00:53 +0800
Subject: [PATCH 2/2] chore: use !! instead

---
 src/core/Seat.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/Seat.cpp b/src/core/Seat.cpp
index 9c2cd614..e03bb3e5 100644
--- a/src/core/Seat.cpp
+++ b/src/core/Seat.cpp
@@ -169,5 +169,5 @@ void CSeatManager::registerCursorShape(SP<CCWpCursorShapeManagerV1> shape) {
 }
 
 bool CSeatManager::registered() {
-    return static_cast<bool>(m_pSeat);
+    return !!m_pSeat;
 }
