summaryrefslogtreecommitdiff
path: root/src/xwayland/XWM.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xwayland/XWM.cpp')
-rw-r--r--src/xwayland/XWM.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xwayland/XWM.cpp b/src/xwayland/XWM.cpp
index 66020e08..e25f94e8 100644
--- a/src/xwayland/XWM.cpp
+++ b/src/xwayland/XWM.cpp
@@ -1281,7 +1281,7 @@ void CXWM::initSelection() {
void CXWM::setClipboardToWayland(SXSelection& sel) {
const auto CLIENT = g_pXWayland->m_server ? g_pXWayland->m_server->m_xwaylandClient : nullptr;
- if (CLIENT && &sel == &m_clipboard) {
+ if (CLIENT) {
const auto PERM = g_pDynamicPermissionManager->clientPermissionMode(CLIENT, PERMISSION_TYPE_CLIPBOARD_WRITE);
if (PERM == PERMISSION_RULE_ALLOW_MODE_DENY) {
Log::logger->log(Log::INFO, "[xwm] Clipboard write denied by permission manager for XWayland");