From 0549c14588e0ccdbd4d78bb710e1c7569b409247 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 21 Oct 2020 18:37:20 +0200 Subject: [PATCH] xwl: No need to create createX11Source twice consecutively --- xwl/clipboard.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xwl/clipboard.cpp b/xwl/clipboard.cpp index a64fda0ae5..e1b1e9698e 100644 --- a/xwl/clipboard.cpp +++ b/xwl/clipboard.cpp @@ -137,12 +137,11 @@ void Clipboard::checkWlSource() void Clipboard::doHandleXfixesNotify(xcb_xfixes_selection_notify_event_t *event) { - createX11Source(nullptr); - const AbstractClient *client = workspace()->activeClient(); if (!qobject_cast(client)) { // clipboard is only allowed to be acquired when Xwayland has focus // TODO: can we make this stronger (window id comparison)? + createX11Source(nullptr); return; }