MCPcopy Create free account
hub / github.com/bea4dev/ShojiWM / syncFloatingWindowRect

Method syncFloatingWindowRect

packages/config/src/window-manager.ts:3990–4004  ·  view source on GitHub ↗
(
    window: WaylandWindow,
    viewportRect: ManagedWindowRect,
  )

Source from the content-addressed store, hash-verified

3988 if (animate) {
3989 playRectAnimation(
3990 window,
3991 WINDOW_STATE_RECT,
3992 rect,
3993 WINDOW_MANAGEMENT_EASING,
3994 TILE_ANIMATION_DURATION,
3995 animationOptions,
3996 );
3997 } else {
3998 if (options.cancelRectAnimations !== false) {
3999 stopRectAnimation(window, WINDOW_STATE_RECT);
4000 }
4001 window.state[WINDOW_STATE_RECT].set(rect);
4002 }
4003 }
4004 nextX += tileWidth + (index === tileable.length - 1 ? 0 : TILE_GAP);
4005 });
4006
4007 hotReloadDebug("workspace-apply-layout", {

Callers 5

onWindowResizeMethod · 0.80
onFloatingWindowMoveMethod · 0.80

Calls 3

shouldTileMethod · 0.95
setMethod · 0.65

Tested by

no test coverage detected