omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Floating windows moving to a shorter scaled monitor lose their titlebars above the top bar

Open kleinbem opened this issue 1 week ago • 1 comments

System details

Omarchy Quattro (ac2690cd7b, 2026-11-05, via nix-omarchy), Hyprland 0.56.2, omarchy-hyprland-titlebars 0.2.2, Intel Core i3-1315U (Raptor Lake-P UHD Graphics). Dual monitors: HDMI-A-1 [email protected] at scale 1.25 (logical 2752x1152, top bar reserved.top = 26) and DP-2 [email protected] at scale 1.0 (logical 2560x1440, reserved.top = 0).

What's wrong?

On a floating workspace, moving a tall floating window from a monitor with a larger logical height to a monitor with a smaller logical height leaves its hyprbars titlebar pushed above the top of the screen, so the window cannot be dragged or closed from its titlebar.

In default/hypr/workspace-modes.lua, window.move_to_workspace calls arrange({ window }, workspace) -> float_for_mode(), which skips place(window) when window.floating is already true and does not clamp the window's size or Y position to the destination monitor's usable area (height / scale - reserved.top - reserved.bottom - bar_height).

Steps to reproduce

  1. Use two monitors with different logical heights (e.g. 2560x1440 at scale 1.0 and 3440x1440 at scale 1.25 with the 26px top bar).
  2. Enable floating workspace mode (Super + L) on workspaces on both monitors.
  3. Open a floating window on the taller monitor (DP-2) and size it to full height (2560x1440).
  4. Move the window to a floating workspace on the shorter scaled monitor (HDMI-A-1), either directly or by minimizing/restoring across workspaces.

Expected The window is resized to fit the destination monitor's usable logical height and positioned so its 30px hyprbars titlebar sits below the top bar (y >= monitor.y + reserved.top + bar_height).

Actual The window keeps its 2560x1440 size on the 2752x1152 monitor and lands at negative Y:

at: 48,-290
size: 2560,1440
floating: 1
tags: omarchy-floating-workspace, omarchy-minimized-from-21, omarchy-mode-floated, omarchy-mode-opened*

The entire hyprbars titlebar (-, □, x buttons and drag area) is off-screen above the top bar.

Workaround I currently clamp floating windows in ~/.config/hypr/looknfeel.lua on window.move_to_workspace, window.open, window.fullscreen, window.active, and monitor layout events, and enable general.snap.

Drafted with Gemini, reviewed by a human.

kleinbem avatar Nov 24 '26 12:11 kleinbem

I reproduced the window keeping its 2560×1440 size on the shorter 2752×1152 logical display, but not the titlebar moving above the screen. On a disposable ISO worker running current Quattro (7427fab86f67c5d5587a9ee4574a7d063e527aac) and Hyprland 0.57.2, a direct monitor move and the minimize/dock-restore dispatch sequence both preserved Y=60, with the titlebar visible below the top bar. The worker used your reported resolutions and scales, but its source monitor also reserved 26 pixels at the top, unlike your source monitor's zero reservation.

The source confirms that float_for_mode() preserves an already-floating window's geometry. That explains the unchanged size; it does not establish what produces Y=-290. Related work exists in #17626 (keeping moved titlebars reachable) and #18143 (resizing through the snapping stack), but neither has been verified against this exact failure here.

Please retry on current Quattro with the clamping workaround disabled and include hyprctl version, hyprctl monitors -j, and hyprctl activewindow -j immediately before and after one failing move, naming the exact keybinding or dock action used. The before-and-after positions and monitor origins will help establish where the negative Y comes from.

GPT-6 in Codex (effort not exposed) performed these source and worker checks. Opus 5.5 High's second review ended without a report; its availability check answered, but no second code review completed. No fix was claimed. This is waiting on the reporter's geometry and retest.

Current Quattro worker result: the titlebar remains visible below the top bar; this crop does not show the full window height

omarchybot avatar Nov 24 '26 13:11 omarchybot