MCPcopy
hub / github.com/paperwm/PaperWM / saveFullscreenFrame

Function saveFullscreenFrame

tiling.js:3812–3826  ·  view source on GitHub ↗
(metaWindow, tiled)

Source from the content-addressed store, hash-verified

3810 * @param {Meta.Window} metaWindow
3811 */
3812export function saveFullscreenFrame(metaWindow, tiled) {
3813 const f = metaWindow.get_frame_rect();
3814 const fsf = metaWindow._fullscreen_frame ?? {};
3815 metaWindow._fullscreen_frame = fsf;
3816 // offset by space's monitor.x
3817 fsf.x = f.x;
3818 fsf.y = f.y;
3819 fsf.width = f.width;
3820 fsf.height = f.height;
3821
3822 // if from tiled, save tiledWidth for tiling width tracking
3823 if (tiled) {
3824 fsf.tiledWidth = f.width;
3825 }
3826}
3827
3828/**
3829 * Saves current state for controlled restarts of PaperWM.

Callers 3

positionChangeHandlerFunction · 0.85
resizeHandlerFunction · 0.85
nonTiledSizeHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected