MCPcopy Create free account
hub / github.com/KDE/kwin / clientToAddToList

Method clientToAddToList

src/tabbox/tabbox.cpp:157–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157Window *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
184QList<Window *> TabBoxHandlerImpl::stackingOrder() const
185{

Callers 2

Calls 5

isDeletedMethod · 0.80
wantsTabFocusMethod · 0.80
skipSwitcherMethod · 0.80
findModalMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected