Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
0549c145
Commit
0549c145
authored
Oct 21, 2020
by
Aleix Pol Gonzalez
🐧
Browse files
xwl: No need to create createX11Source twice consecutively
parent
d335070b
Changes
1
Hide whitespace changes
Inline
Side-by-side
xwl/clipboard.cpp
View file @
0549c145
...
...
@@ -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
<
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
;
}
...
...
Aleix Pol Gonzalez
🐧
@apol
mentioned in commit
7bfb9add
·
Nov 28, 2020
mentioned in commit
7bfb9add
mentioned in commit 7bfb9add9666c56cb4c993208d9bf42a4bdae86f
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment