| 847 | } |
| 848 | |
| 849 | void Workspace::removeWindow(Window *window) |
| 850 | { |
| 851 | if (window == m_activePopupWindow) { |
| 852 | closeActivePopup(); |
| 853 | } |
| 854 | if (m_userActionsMenu->isMenuWindow(window)) { |
| 855 | m_userActionsMenu->close(); |
| 856 | } |
| 857 | |
| 858 | m_windows.removeAll(window); |
| 859 | if (window == m_delayFocusWindow) { |
| 860 | cancelDelayFocus(); |
| 861 | } |
| 862 | attention_chain.removeAll(window); |
| 863 | should_get_focus.removeAll(window); |
| 864 | if (window == m_activeWindow) { |
| 865 | m_activeWindow = nullptr; |
| 866 | } |
| 867 | if (window == m_lastActiveWindow) { |
| 868 | m_lastActiveWindow = nullptr; |
| 869 | } |
| 870 | if (m_windowKeysWindow == window) { |
| 871 | setupWindowShortcutDone(false); |
| 872 | } |
| 873 | if (window->hasStrut()) { |
| 874 | scheduleRearrange(); |
| 875 | } |
| 876 | |
| 877 | Q_EMIT windowRemoved(window); |
| 878 | |
| 879 | updateStackingOrder(true); |
| 880 | updateTabbox(); |
| 881 | } |
| 882 | |
| 883 | void Workspace::slotReloadConfig() |
| 884 | { |
no test coverage detected