Commit ba173778 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

xwl: properly check type inheritance

parent c016f34d
......@@ -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;
......
Markdown is supported
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