Changeset View
Changeset View
Standalone View
Standalone View
tabbox/tabbox.cpp
Show First 20 Lines • Show All 194 Lines • ▼ Show 20 Line(s) | 189 | { | |||
---|---|---|---|---|---|
195 | case TabBoxConfig::OneWindowPerApplication: | 195 | case TabBoxConfig::OneWindowPerApplication: | ||
196 | // check if the list already contains an entry of this application | 196 | // check if the list already contains an entry of this application | ||
197 | while (i.hasNext()) { | 197 | while (i.hasNext()) { | ||
198 | QSharedPointer<TabBoxClient> client = i.next().toStrongRef(); | 198 | QSharedPointer<TabBoxClient> client = i.next().toStrongRef(); | ||
199 | if (!client) { | 199 | if (!client) { | ||
200 | continue; | 200 | continue; | ||
201 | } | 201 | } | ||
202 | if ((c = dynamic_cast< TabBoxClientImpl* >(client.data()))) { | 202 | if ((c = dynamic_cast< TabBoxClientImpl* >(client.data()))) { | ||
203 | if (AbstractClient::belongToSameApplication(c->client(), current)) { | 203 | if (AbstractClient::belongToSameApplication(c->client(), current, AbstractClient::SameApplicationCheck::AllowCrossProcesses)) { | ||
204 | return false; | 204 | return false; | ||
205 | } | 205 | } | ||
206 | } | 206 | } | ||
207 | } | 207 | } | ||
208 | return true; | 208 | return true; | ||
209 | case TabBoxConfig::AllWindowsCurrentApplication: { | 209 | case TabBoxConfig::AllWindowsCurrentApplication: { | ||
210 | QSharedPointer<TabBoxClient> pointer = tabBox->activeClient().toStrongRef(); | 210 | QSharedPointer<TabBoxClient> pointer = tabBox->activeClient().toStrongRef(); | ||
211 | if (!pointer) { | 211 | if (!pointer) { | ||
212 | return false; | 212 | return false; | ||
213 | } | 213 | } | ||
214 | if ((c = dynamic_cast< TabBoxClientImpl* >(pointer.data()))) { | 214 | if ((c = dynamic_cast< TabBoxClientImpl* >(pointer.data()))) { | ||
215 | if (AbstractClient::belongToSameApplication(c->client(), current)) { | 215 | if (AbstractClient::belongToSameApplication(c->client(), current, AbstractClient::SameApplicationCheck::AllowCrossProcesses)) { | ||
216 | return true; | 216 | return true; | ||
217 | } | 217 | } | ||
218 | } | 218 | } | ||
219 | return false; | 219 | return false; | ||
220 | } | 220 | } | ||
221 | default: // TabBoxConfig::AllWindowsAllApplications | 221 | default: // TabBoxConfig::AllWindowsAllApplications | ||
222 | return true; | 222 | return true; | ||
223 | } | 223 | } | ||
▲ Show 20 Lines • Show All 1387 Lines • Show Last 20 Lines |