(metaWindow, tiled)
| 3810 | * @param {Meta.Window} metaWindow |
| 3811 | */ |
| 3812 | export 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. |
no outgoing calls
no test coverage detected