Workspace::topClientOnDesktop returns AbstractClient
This commit is contained in:
parent
a9d8926d3c
commit
5f429625f0
2 changed files with 3 additions and 3 deletions
|
@ -235,7 +235,7 @@ void Workspace::propagateClients(bool propagate_new_clients)
|
|||
doesn't accept focus it's excluded.
|
||||
*/
|
||||
// TODO misleading name for this method, too many slightly different ways to use it
|
||||
Client* Workspace::topClientOnDesktop(int desktop, int screen, bool unconstrained, bool only_normal) const
|
||||
AbstractClient* Workspace::topClientOnDesktop(int desktop, int screen, bool unconstrained, bool only_normal) const
|
||||
{
|
||||
// TODO Q_ASSERT( block_stacking_updates == 0 );
|
||||
ToplevelList list;
|
||||
|
@ -246,7 +246,7 @@ Client* Workspace::topClientOnDesktop(int desktop, int screen, bool unconstraine
|
|||
for (int i = list.size() - 1;
|
||||
i >= 0;
|
||||
--i) {
|
||||
Client *c = qobject_cast<Client*>(list.at(i));
|
||||
AbstractClient *c = qobject_cast<AbstractClient*>(list.at(i));
|
||||
if (!c) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -245,7 +245,7 @@ public:
|
|||
ClientList ensureStackingOrder(const ClientList& clients) const;
|
||||
QList<AbstractClient*> ensureStackingOrder(const QList<AbstractClient*> &clients) const;
|
||||
|
||||
Client* topClientOnDesktop(int desktop, int screen, bool unconstrained = false,
|
||||
AbstractClient* topClientOnDesktop(int desktop, int screen, bool unconstrained = false,
|
||||
bool only_normal = true) const;
|
||||
AbstractClient* findDesktop(bool topmost, int desktop) const;
|
||||
void sendClientToDesktop(AbstractClient* c, int desktop, bool dont_activate);
|
||||
|
|
Loading…
Reference in a new issue