xwl: properly check type inheritance

This commit is contained in:
Aleix Pol 2020-10-20 02:16:00 +02:00
parent c016f34dee
commit ba1737787a

View file

@ -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;