Remove no longer cast in Workspace::allowClientActivation
This commit is contained in:
parent
41cd927bce
commit
fe8946740c
1 changed files with 2 additions and 4 deletions
|
@ -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<const Client*>(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;
|
||||
|
|
Loading…
Reference in a new issue