MCPcopy
hub / github.com/agalwood/Motrix / handleWindowState

Method handleWindowState

src/main/ui/WindowManager.js:188–198  ·  view source on GitHub ↗
(page, window)

Source from the content-addressed store, hash-verified

186 }
187
188 handleWindowState (page, window) {
189 window.on('resize', debounce(() => {
190 const bounds = window.getBounds()
191 this.emit('window-resized', { page, bounds })
192 }, 500))
193
194 window.on('move', debounce(() => {
195 const bounds = window.getBounds()
196 this.emit('window-moved', { page, bounds })
197 }, 500))
198 }
199
200 handleWindowClose (pageOptions, page, window) {
201 window.on('close', (event) => {

Callers 1

openWindowMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected