Changeset View
Changeset View
Standalone View
Standalone View
placement.cpp
Show First 20 Lines • Show All 170 Lines • ▼ Show 20 Line(s) | |||||
171 | 171 | | |||
172 | // TODO: one day, there'll be C++11 ... | 172 | // TODO: one day, there'll be C++11 ... | ||
173 | static inline bool isIrrelevant(const AbstractClient *client, const AbstractClient *regarding, int desktop) | 173 | static inline bool isIrrelevant(const AbstractClient *client, const AbstractClient *regarding, int desktop) | ||
174 | { | 174 | { | ||
175 | if (!client) | 175 | if (!client) | ||
176 | return true; | 176 | return true; | ||
177 | if (client == regarding) | 177 | if (client == regarding) | ||
178 | return true; | 178 | return true; | ||
179 | if (!client->isCurrentTab()) | | |||
180 | return true; | | |||
181 | if (!client->isShown(false)) | 179 | if (!client->isShown(false)) | ||
182 | return true; | 180 | return true; | ||
183 | if (!client->isOnDesktop(desktop)) | 181 | if (!client->isOnDesktop(desktop)) | ||
184 | return true; | 182 | return true; | ||
185 | if (!client->isOnCurrentActivity()) | 183 | if (!client->isOnCurrentActivity()) | ||
186 | return true; | 184 | return true; | ||
187 | if (client->isDesktop()) | 185 | if (client->isDesktop()) | ||
188 | return true; | 186 | return true; | ||
▲ Show 20 Lines • Show All 767 Lines • Show Last 20 Lines |