()
| 170 | } |
| 171 | |
| 172 | private assignWindows() { |
| 173 | // We capture the list of all actors at the beginning and don't care about any new ones until the |
| 174 | // next time we start assigning windows. |
| 175 | const actors = global |
| 176 | .get_window_actors() |
| 177 | .filter( |
| 178 | (x) => |
| 179 | (x.meta_window as MetaWindowWithMsProperties) |
| 180 | .handledByMaterialShell |
| 181 | ); |
| 182 | // Assign all non-dialog windows first |
| 183 | this.assignNonDialogWindows(actors); |
| 184 | // Assign the dialog windows to previously existing MsWindows that fits them. |
| 185 | this.assignDialogWindows(actors); |
| 186 | } |
| 187 | |
| 188 | /** Assign non-dialog windows to either existing empty MsWindows or determine that new MsWindows should be created for them. |
| 189 | * |
no test coverage detected