()
| 195 | // } |
| 196 | |
| 197 | tileWindows() { |
| 198 | if (this.tilingInProgress) return; |
| 199 | |
| 200 | this.tilingInProgress = true; |
| 201 | GLib.idle_add(GLib.PRIORITY_DEFAULT, () => { |
| 202 | for (const monitor of Main.layoutManager.monitors) { |
| 203 | let msWorkspace; |
| 204 | if (monitor.index === Main.layoutManager.primaryIndex) { |
| 205 | msWorkspace = |
| 206 | Me.msWorkspaceManager!.getActivePrimaryMsWorkspace(); |
| 207 | } else { |
| 208 | msWorkspace = |
| 209 | Me.msWorkspaceManager!.getMsWorkspacesOfMonitorIndex( |
| 210 | monitor.index |
| 211 | )[0]; |
| 212 | } |
| 213 | const layout = msWorkspace.layout; |
| 214 | |
| 215 | layout.tileAll(); |
| 216 | //this.dialogLayout.onTile(dialogWindows, monitor); |
| 217 | } |
| 218 | |
| 219 | this.tilingInProgress = false; |
| 220 | return GLib.SOURCE_REMOVE; |
| 221 | }); |
| 222 | } |
| 223 | } |
no test coverage detected