| 155 | } |
| 156 | |
| 157 | Window *TabBoxHandlerImpl::clientToAddToList(Window *client) const |
| 158 | { |
| 159 | if (!client || client->isDeleted()) { |
| 160 | return nullptr; |
| 161 | } |
| 162 | Window *ret = nullptr; |
| 163 | |
| 164 | bool addClient = checkDesktop(client) |
| 165 | && checkActivity(client) |
| 166 | && checkApplications(client) |
| 167 | && checkMinimized(client) |
| 168 | && checkMultiScreen(client); |
| 169 | addClient = addClient && client->wantsTabFocus() && !client->skipSwitcher(); |
| 170 | if (addClient) { |
| 171 | // don't add windows that have modal dialogs |
| 172 | Window *modal = client->findModal(); |
| 173 | if (modal == nullptr || modal == client) { |
| 174 | ret = client; |
| 175 | } else if (!clientList().contains(modal)) { |
| 176 | ret = modal; |
| 177 | } else { |
| 178 | // nothing |
| 179 | } |
| 180 | } |
| 181 | return ret; |
| 182 | } |
| 183 | |
| 184 | QList<Window *> TabBoxHandlerImpl::stackingOrder() const |
| 185 | { |
no test coverage detected