xwl: properly check type inheritance
This commit is contained in:
parent
c016f34dee
commit
ba1737787a
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ void Clipboard::checkWlSource()
|
|||
removeSource();
|
||||
return;
|
||||
}
|
||||
if (!workspace()->activeClient() || !workspace()->activeClient()->inherits("KWin::X11Client")) {
|
||||
if (!qobject_cast<KWin::X11Client*>(workspace()->activeClient())) {
|
||||
// no active client or active client is Wayland native
|
||||
removeSource();
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue