Changeset View
Changeset View
Standalone View
Standalone View
workspace.cpp
Show First 20 Lines • Show All 655 Lines • ▼ Show 20 Line(s) | 654 | { | |||
---|---|---|---|---|---|
656 | markXStackingOrderAsDirty(); | 656 | markXStackingOrderAsDirty(); | ||
657 | } | 657 | } | ||
658 | 658 | | |||
659 | /** | 659 | /** | ||
660 | * Destroys the client \a c | 660 | * Destroys the client \a c | ||
661 | */ | 661 | */ | ||
662 | void Workspace::removeClient(Client* c) | 662 | void Workspace::removeClient(Client* c) | ||
663 | { | 663 | { | ||
664 | emit clientRemoved(c); | | |||
665 | | ||||
666 | if (c == active_popup_client) | 664 | if (c == active_popup_client) | ||
667 | closeActivePopup(); | 665 | closeActivePopup(); | ||
668 | if (m_userActionsMenu->isMenuClient(c)) { | 666 | if (m_userActionsMenu->isMenuClient(c)) { | ||
669 | m_userActionsMenu->close(); | 667 | m_userActionsMenu->close(); | ||
670 | } | 668 | } | ||
671 | 669 | | |||
672 | c->untab(QRect(), true); | 670 | c->untab(QRect(), true); | ||
673 | 671 | | |||
Show All 25 Lines | 696 | if (c == most_recently_raised) | |||
699 | most_recently_raised = 0; | 697 | most_recently_raised = 0; | ||
700 | should_get_focus.removeAll(c); | 698 | should_get_focus.removeAll(c); | ||
701 | Q_ASSERT(c != active_client); | 699 | Q_ASSERT(c != active_client); | ||
702 | if (c == last_active_client) | 700 | if (c == last_active_client) | ||
703 | last_active_client = 0; | 701 | last_active_client = 0; | ||
704 | if (c == delayfocus_client) | 702 | if (c == delayfocus_client) | ||
705 | cancelDelayFocus(); | 703 | cancelDelayFocus(); | ||
706 | 704 | | |||
705 | emit clientRemoved(c); | ||||
706 | | ||||
707 | updateStackingOrder(true); | 707 | updateStackingOrder(true); | ||
708 | 708 | | |||
709 | #ifdef KWIN_BUILD_TABBOX | 709 | #ifdef KWIN_BUILD_TABBOX | ||
710 | if (tabBox->isDisplayed()) | 710 | if (tabBox->isDisplayed()) | ||
711 | tabBox->reset(true); | 711 | tabBox->reset(true); | ||
712 | #endif | 712 | #endif | ||
713 | 713 | | |||
714 | updateClientArea(); | 714 | updateClientArea(); | ||
▲ Show 20 Lines • Show All 1059 Lines • Show Last 20 Lines |