Workspace::raiseClientWithinApplication opertes on AbstractClient
This commit is contained in:
parent
e46bf87311
commit
fc5b303c5f
2 changed files with 4 additions and 4 deletions
|
@ -387,7 +387,7 @@ void Workspace::raiseClient(AbstractClient* c, bool nogroup)
|
|||
}
|
||||
}
|
||||
|
||||
void Workspace::raiseClientWithinApplication(Client* c)
|
||||
void Workspace::raiseClientWithinApplication(AbstractClient* c)
|
||||
{
|
||||
if (!c)
|
||||
return;
|
||||
|
@ -399,13 +399,13 @@ void Workspace::raiseClientWithinApplication(Client* c)
|
|||
|
||||
// first try to put it above the top-most window of the application
|
||||
for (int i = unconstrained_stacking_order.size() - 1; i > -1 ; --i) {
|
||||
Client *other = qobject_cast<Client*>(unconstrained_stacking_order.at(i));
|
||||
AbstractClient *other = qobject_cast<AbstractClient*>(unconstrained_stacking_order.at(i));
|
||||
if (!other) {
|
||||
continue;
|
||||
}
|
||||
if (other == c) // don't lower it just because it asked to be raised
|
||||
return;
|
||||
if (Client::belongToSameApplication(other, c)) {
|
||||
if (AbstractClient::belongToSameApplication(other, c)) {
|
||||
unconstrained_stacking_order.removeAll(c);
|
||||
unconstrained_stacking_order.insert(unconstrained_stacking_order.indexOf(other) + 1, c); // insert after the found one
|
||||
break;
|
||||
|
|
|
@ -483,7 +483,7 @@ private:
|
|||
|
||||
void propagateClients(bool propagate_new_clients); // Called only from updateStackingOrder
|
||||
ToplevelList constrainedStackingOrder();
|
||||
void raiseClientWithinApplication(Client* c);
|
||||
void raiseClientWithinApplication(AbstractClient* c);
|
||||
void lowerClientWithinApplication(AbstractClient* c);
|
||||
bool allowFullClientRaising(const AbstractClient* c, xcb_timestamp_t timestamp);
|
||||
bool keepTransientAbove(const AbstractClient* mainwindow, const AbstractClient* transient);
|
||||
|
|
Loading…
Reference in a new issue