Commit 0549c145 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

xwl: No need to create createX11Source twice consecutively

parent d335070b
...@@ -137,12 +137,11 @@ void Clipboard::checkWlSource() ...@@ -137,12 +137,11 @@ void Clipboard::checkWlSource()
void Clipboard::doHandleXfixesNotify(xcb_xfixes_selection_notify_event_t *event) void Clipboard::doHandleXfixesNotify(xcb_xfixes_selection_notify_event_t *event)
{ {
createX11Source(nullptr);
const AbstractClient *client = workspace()->activeClient(); const AbstractClient *client = workspace()->activeClient();
if (!qobject_cast<const X11Client *>(client)) { if (!qobject_cast<const X11Client *>(client)) {
// clipboard is only allowed to be acquired when Xwayland has focus // clipboard is only allowed to be acquired when Xwayland has focus
// TODO: can we make this stronger (window id comparison)? // TODO: can we make this stronger (window id comparison)?
createX11Source(nullptr);
return; return;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment