From fe8946740c63276937d1e31a8b9b598b6d50c721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 12 Mar 2015 12:13:46 +0100 Subject: [PATCH] Remove no longer cast in Workspace::allowClientActivation --- activation.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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;