Changeset View
Changeset View
Standalone View
Standalone View
workspace.cpp
Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Line(s) | 106 | Workspace::Workspace(const QString &sessionKey) | |||
---|---|---|---|---|---|
113 | , active_client(nullptr) | 113 | , active_client(nullptr) | ||
114 | , last_active_client(nullptr) | 114 | , last_active_client(nullptr) | ||
115 | , most_recently_raised(nullptr) | 115 | , most_recently_raised(nullptr) | ||
116 | , movingClient(nullptr) | 116 | , movingClient(nullptr) | ||
117 | , delayfocus_client(nullptr) | 117 | , delayfocus_client(nullptr) | ||
118 | , force_restacking(false) | 118 | , force_restacking(false) | ||
119 | , showing_desktop(false) | 119 | , showing_desktop(false) | ||
120 | , was_user_interaction(false) | 120 | , was_user_interaction(false) | ||
121 | , session_saving(false) | | |||
122 | , block_focus(0) | 121 | , block_focus(0) | ||
123 | , m_userActionsMenu(new UserActionsMenu(this)) | 122 | , m_userActionsMenu(new UserActionsMenu(this)) | ||
124 | , client_keys_dialog(nullptr) | 123 | , client_keys_dialog(nullptr) | ||
125 | , client_keys_client(nullptr) | 124 | , client_keys_client(nullptr) | ||
126 | , global_shortcuts_disabled_for_client(false) | 125 | , global_shortcuts_disabled_for_client(false) | ||
127 | , workspaceInit(true) | 126 | , workspaceInit(true) | ||
128 | , startup(nullptr) | 127 | , startup(nullptr) | ||
129 | , set_active_client_recursion(0) | 128 | , set_active_client_recursion(0) | ||
130 | , block_stacking_updates(0) | 129 | , block_stacking_updates(0) | ||
130 | , m_sessionManager(new SessionManager(this)) | ||||
131 | { | 131 | { | ||
132 | // If KWin was already running it saved its configuration after loosing the selection -> Reread | 132 | // If KWin was already running it saved its configuration after loosing the selection -> Reread | ||
133 | QFuture<void> reparseConfigFuture = QtConcurrent::run(options, &Options::reparseConfiguration); | 133 | QFuture<void> reparseConfigFuture = QtConcurrent::run(options, &Options::reparseConfiguration); | ||
134 | 134 | | |||
135 | ApplicationMenu::create(this); | 135 | ApplicationMenu::create(this); | ||
136 | 136 | | |||
137 | _self = this; | 137 | _self = this; | ||
138 | 138 | | |||
Show All 12 Lines | 147 | #endif | |||
151 | 151 | | |||
152 | options->loadConfig(); | 152 | options->loadConfig(); | ||
153 | options->loadCompositingConfig(false); | 153 | options->loadCompositingConfig(false); | ||
154 | 154 | | |||
155 | delayFocusTimer = nullptr; | 155 | delayFocusTimer = nullptr; | ||
156 | 156 | | |||
157 | if (!sessionKey.isEmpty()) | 157 | if (!sessionKey.isEmpty()) | ||
158 | loadSessionInfo(sessionKey); | 158 | loadSessionInfo(sessionKey); | ||
159 | connect(qApp, &QGuiApplication::commitDataRequest, this, &Workspace::commitData); | | |||
160 | connect(qApp, &QGuiApplication::saveStateRequest, this, &Workspace::saveState); | 159 | connect(qApp, &QGuiApplication::saveStateRequest, this, &Workspace::saveState); | ||
161 | 160 | | |||
162 | RuleBook::create(this)->load(); | 161 | RuleBook::create(this)->load(); | ||
163 | 162 | | |||
164 | ScreenEdges::create(this); | 163 | ScreenEdges::create(this); | ||
165 | 164 | | |||
166 | // VirtualDesktopManager needs to be created prior to init shortcuts | 165 | // VirtualDesktopManager needs to be created prior to init shortcuts | ||
167 | // and prior to TabBox, due to TabBox connecting to signals | 166 | // and prior to TabBox, due to TabBox connecting to signals | ||
▲ Show 20 Lines • Show All 1654 Lines • ▼ Show 20 Line(s) | 1819 | { | |||
1822 | 1821 | | |||
1823 | markXStackingOrderAsDirty(); | 1822 | markXStackingOrderAsDirty(); | ||
1824 | updateStackingOrder(true); | 1823 | updateStackingOrder(true); | ||
1825 | updateClientArea(); | 1824 | updateClientArea(); | ||
1826 | 1825 | | |||
1827 | emit internalClientRemoved(client); | 1826 | emit internalClientRemoved(client); | ||
1828 | } | 1827 | } | ||
1829 | 1828 | | |||
1830 | } // namespace | 1829 | } // namespace | ||
zzag: Put whitespace between `//` and the text. | |||||
davidedmundson: I can't wait for clang-format! | |||||
zzag: Unfortunately clang-format doesn't format comments. | |||||
zzag: * Don't use foreach in new code.
* Change `c` to `client` |
Put whitespace between // and the text.