()
| 123 | private checkWindowsForAssignationsDebounce: AsyncDebounce; |
| 124 | |
| 125 | constructor() { |
| 126 | super(); |
| 127 | |
| 128 | this.checkWindowsForAssignationsDebounce = new AsyncDebounce( |
| 129 | 50, |
| 130 | this.checkWindowsForAssignations.bind(this) |
| 131 | ); |
| 132 | this.windowTracker = Shell.WindowTracker.get_default(); |
| 133 | this.msWindowList = []; |
| 134 | this.msDndManager = new MsDndManager(this); |
| 135 | this.msResizeManager = new MsResizeManager(this); |
| 136 | this.msFocusManager = new MsFocusManager(this); |
| 137 | this.observe( |
| 138 | global.display, |
| 139 | 'window-created', |
| 140 | (_, metaWindow: MetaWindowWithMsProperties) => { |
| 141 | const actor = |
| 142 | metaWindow.get_compositor_private() as Meta.WindowActor; |
| 143 | metaWindow.firstFrameDrawn = false; |
| 144 | metaWindow.firstFrameDrawnPromise = new Promise((resolve) => { |
| 145 | actor.connect('first-frame', (_params) => { |
| 146 | metaWindow.firstFrameDrawn = true; |
| 147 | resolve(); |
| 148 | }); |
| 149 | }); |
| 150 | this.onNewMetaWindow(metaWindow); |
| 151 | } |
| 152 | ); |
| 153 | |
| 154 | this.observe( |
| 155 | global.window_manager, |
| 156 | 'size-changed', |
| 157 | (wm, actor: MetaWindowActorWithMsProperties) => { |
| 158 | actor.lastResize = Date.now(); |
| 159 | } |
| 160 | ); |
| 161 | } |
| 162 | |
| 163 | /** All meta windows that are currently managed by Material Shell. |
| 164 | * This includes app windows and their dialogs. |
nothing calls this directly
no test coverage detected