#1854·Seelen-UI

[BUG] Tiled windows can end up larger than their tile (app resizes itself, or tile below the window's minimum size)

Author: z1pp090Created Sep 24, 2026Updated Sep 27, 2026

Description

The window manager assumes a tiled window takes the size it's given. Two cases break that, and the window then overlaps its neighbours:

  1. The app resizes itself after being placed. Ryujinx restores its saved window size on startup (RememberWindowState). The WM places it first (set_app_windows_positions called with 1 positions), then Ryujinx applies its saved 957×494. It ends up 974×571 inside a 1920×1050 tile, and the tile border still outlines the full tile. window_manager/hook.rs only reconciles sizes on SystemMoveSizeEnd, so a resize made by the app itself is never corrected. Toggling the WM off and on fixes it.
  2. The tile is smaller than the window's minimum size. Ryujinx has MinWidth=800/MinHeight=500. After shrinking its tile with slu window-manager width decrease, the tile goes down to 718 → 598 → … → 147 px wide, but the window stays 802 px wide, covering up to 655 px of the next window. It also becomes 802×1081 and runs 31 px past the bottom of the screen.

Steps to reproduce

  1. Tile any app that restores its own window size on launch (Ryujinx with "Remember window size/position" on), or has a large minimum size.
  2. For case 2, focus the window and run slu window-manager width decrease a few times.

Possible approaches

Happy to work on one if you tell me which you prefer.

  • After placing a window, compare its actual rect with the tile, and on EVENT_OBJECT_LOCATIONCHANGE for tiled windows that aren't being dragged. Re-apply the position if the app changed it, with a small retry limit so an app that keeps resizing itself can't loop.
  • If the window still doesn't fit (minimum size), either float it, or give its container the space it needs and shrink the siblings instead.

Environment

Seelen UI 2.8.6 (MSIX), Windows 11 Pro 25H2 (26200), 2× 1920×1080 at 100 %.