diff --git a/activation.cpp b/activation.cpp index f4b680233b..56e8d9a04f 100644 --- a/activation.cpp +++ b/activation.cpp @@ -552,10 +552,8 @@ bool Workspace::allowClientActivation(const KWin::AbstractClient *c, xcb_timesta } AbstractClient* ac = mostRecentlyActivatedClient(); if (focus_in) { - if (const Client *cc = dynamic_cast(c)) { - if (should_get_focus.contains(const_cast< Client* >(cc))) - return true; // FocusIn was result of KWin's action - } + if (should_get_focus.contains(const_cast< AbstractClient* >(c))) + return true; // FocusIn was result of KWin's action // Before getting FocusIn, the active Client already // got FocusOut, and therefore got deactivated. ac = last_active_client;