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

Method updateTileDrag

packages/config/src/window-manager.ts:3571–3588  ·  view source on GitHub ↗
(
    window: WaylandWindow,
    rect: ManagedWindowRect,
    pointerX: number,
  )

Source from the content-addressed store, hash-verified

3569 if (index < 0) {
3570 return;
3571 }
3572 this.windows.splice(index, 1);
3573 this.draggingWindowId = null;
3574 }
3575
3576 public removeFloatingWindow(window: WaylandWindow) {
3577 const index = this.windows.findIndex((current) => current.id === window.id);
3578 if (index < 0) {
3579 return;
3580 }
3581 this.windows.splice(index, 1);
3582 if (this.activeWindowId === window.id) {
3583 this.activeWindowId =
3584 this.activeWindow(this.tileableWindows())?.id ?? null;
3585 }
3586 }
3587
3588 public hasWindow(window: WaylandWindow): boolean {
3589 return this.windows.some((current) => current.id === window.id);
3590 }
3591

Callers 2

onFloatingWindowMoveMethod · 0.80
onTileWindowMoveMethod · 0.80

Calls 7

beginTileDragMethod · 0.95
moveTileWindowToIndexMethod · 0.95
scrollToWindowMethod · 0.95
applyLayoutMethod · 0.95
stopRectAnimationFunction · 0.90
setMethod · 0.65

Tested by

no test coverage detected