xwl: No need to create createX11Source twice consecutively
(cherry picked from commit 0549c14588
)
icc-effect-5.20.5
parent
99b29195b4
commit
7bfb9add96
|
@ -140,12 +140,11 @@ void Clipboard::checkWlSource()
|
|||
|
||||
void Clipboard::doHandleXfixesNotify(xcb_xfixes_selection_notify_event_t *event)
|
||||
{
|
||||
createX11Source(nullptr);
|
||||
|
||||
const AbstractClient *client = workspace()->activeClient();
|
||||
if (!qobject_cast<const X11Client *>(client)) {
|
||||
// clipboard is only allowed to be acquired when Xwayland has focus
|
||||
// TODO: can we make this stronger (window id comparison)?
|
||||
createX11Source(nullptr);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue