Workspace::gotFocusIn and ::shouldGetFocusIn changed to operate on AbstractClient
This commit is contained in:
parent
726b1addd2
commit
9a8f94f8fc
2 changed files with 5 additions and 5 deletions
|
@ -526,9 +526,9 @@ void Workspace::setCurrentScreen(int new_screen)
|
|||
screens()->setCurrent(new_screen);
|
||||
}
|
||||
|
||||
void Workspace::gotFocusIn(const Client* c)
|
||||
void Workspace::gotFocusIn(const AbstractClient* c)
|
||||
{
|
||||
if (should_get_focus.contains(const_cast< Client* >(c))) {
|
||||
if (should_get_focus.contains(const_cast< AbstractClient* >(c))) {
|
||||
// remove also all sooner elements that should have got FocusIn,
|
||||
// but didn't for some reason (and also won't anymore, because they were sooner)
|
||||
while (should_get_focus.first() != c)
|
||||
|
@ -537,7 +537,7 @@ void Workspace::gotFocusIn(const Client* c)
|
|||
}
|
||||
}
|
||||
|
||||
void Workspace::setShouldGetFocus(Client* c)
|
||||
void Workspace::setShouldGetFocus(AbstractClient* c)
|
||||
{
|
||||
should_get_focus.append(c);
|
||||
updateStackingOrder(); // e.g. fullscreens have different layer when active/not-active
|
||||
|
|
|
@ -160,8 +160,8 @@ public:
|
|||
bool allowClientActivation(const AbstractClient* c, xcb_timestamp_t time = -1U, bool focus_in = false,
|
||||
bool ignore_desktop = false);
|
||||
void restoreFocus();
|
||||
void gotFocusIn(const Client*);
|
||||
void setShouldGetFocus(Client*);
|
||||
void gotFocusIn(const AbstractClient*);
|
||||
void setShouldGetFocus(AbstractClient*);
|
||||
bool activateNextClient(AbstractClient* c);
|
||||
bool focusChangeEnabled() {
|
||||
return block_focus == 0;
|
||||
|
|
Loading…
Reference in a new issue