Changeset View
Changeset View
Standalone View
Standalone View
group.cpp
Show First 20 Lines • Show All 228 Lines • ▼ Show 20 Line(s) | 219 | } else { | |||
---|---|---|---|---|---|
229 | if (c->isModal()) { | 229 | if (c->isModal()) { | ||
230 | foreach (AbstractClient * c2, c->mainClients()) | 230 | foreach (AbstractClient * c2, c->mainClients()) | ||
231 | c2->unminimize(); | 231 | c2->unminimize(); | ||
232 | } | 232 | } | ||
233 | } | 233 | } | ||
234 | } | 234 | } | ||
235 | 235 | | |||
236 | 236 | | |||
237 | /*! | 237 | /** | ||
238 | Sets the client \a c's transient windows' on_all_desktops property to \a on_all_desktops. | 238 | * Sets the client \a c's transient windows' on_all_desktops property to \a on_all_desktops. | ||
239 | */ | 239 | **/ | ||
240 | void Workspace::updateOnAllDesktopsOfTransients(AbstractClient* c) | 240 | void Workspace::updateOnAllDesktopsOfTransients(AbstractClient* c) | ||
241 | { | 241 | { | ||
242 | for (auto it = c->transients().constBegin(); | 242 | for (auto it = c->transients().constBegin(); | ||
243 | it != c->transients().constEnd(); | 243 | it != c->transients().constEnd(); | ||
244 | ++it) { | 244 | ++it) { | ||
245 | if ((*it)->isOnAllDesktops() != c->isOnAllDesktops()) | 245 | if ((*it)->isOnAllDesktops() != c->isOnAllDesktops()) | ||
246 | (*it)->setOnAllDesktops(c->isOnAllDesktops()); | 246 | (*it)->setOnAllDesktops(c->isOnAllDesktops()); | ||
247 | } | 247 | } | ||
▲ Show 20 Lines • Show All 328 Lines • ▼ Show 20 Line(s) | 573 | if ((*it2)->hasTransient(*it1, false) && (*it3)->hasTransient(*it1, false)) { | |||
576 | if ((*it3)->hasTransient(*it2, true)) | 576 | if ((*it3)->hasTransient(*it2, true)) | ||
577 | (*it3)->removeTransientFromList(*it1); | 577 | (*it3)->removeTransientFromList(*it1); | ||
578 | } | 578 | } | ||
579 | } | 579 | } | ||
580 | } | 580 | } | ||
581 | } | 581 | } | ||
582 | } | 582 | } | ||
583 | 583 | | |||
584 | /*! | 584 | /** | ||
585 | Check that the window is not transient for itself, and similar nonsense. | 585 | * Check that the window is not transient for itself, and similar nonsense. | ||
586 | */ | 586 | **/ | ||
587 | xcb_window_t Client::verifyTransientFor(xcb_window_t new_transient_for, bool set) | 587 | xcb_window_t Client::verifyTransientFor(xcb_window_t new_transient_for, bool set) | ||
588 | { | 588 | { | ||
589 | xcb_window_t new_property_value = new_transient_for; | 589 | xcb_window_t new_property_value = new_transient_for; | ||
590 | // make sure splashscreens are shown above all their app's windows, even though | 590 | // make sure splashscreens are shown above all their app's windows, even though | ||
591 | // they're in Normal layer | 591 | // they're in Normal layer | ||
592 | if (isSplash() && new_transient_for == XCB_WINDOW_NONE) | 592 | if (isSplash() && new_transient_for == XCB_WINDOW_NONE) | ||
593 | new_transient_for = rootWindow(); | 593 | new_transient_for = rootWindow(); | ||
594 | if (new_transient_for == XCB_WINDOW_NONE) { | 594 | if (new_transient_for == XCB_WINDOW_NONE) { | ||
▲ Show 20 Lines • Show All 325 Lines • Show Last 20 Lines |