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