hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
21.97k stars 913 forks source link

Window snaps to monitor when resizing #8554

Open soufhehe opened 1 week ago

soufhehe commented 1 week ago

Already reported ? *

Regression?

No

System Info and Version

System/Version info ```sh Hyprland 0.45.0 built from branch main at commit 54f57797e9d025db72777ccf4adb0ddb25125016 (snap: account for position of multiple monitors (8543)). Date: Sat Nov 23 15:36:28 2024 Tag: v0.45.0-59-g54f57797, commits: 5492 built against aquamarine 0.5.0 flags set: debug System Information: System name: Linux Node name: aphe-pc Release: 6.12.1-2-cachyos Version: #1 SMP PREEMPT_DYNAMIC Fri, 22 Nov 2024 17:05:17 +0000 GPU information: 03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir [Radeon Vega Series / Radeon Vega Mobile Series] [1002:1636] (rev c2) (prog-if 00 [VGA controller]) os-release: NAME="CachyOS Linux" PRETTY_NAME="CachyOS" ID=cachyos ID_LIKE=arch BUILD_ID=rolling ANSI_COLOR="38;2;23;147;209" HOME_URL="https://cachyos.org/" DOCUMENTATION_URL="https://wiki.cachyos.org/" SUPPORT_URL="https://discuss.cachyos.org/" BUG_REPORT_URL="https://github.com/cachyos" PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" LOGO=cachyos plugins: unknown: not runtime ```

Description

If general:monitor_gap is too big, windows snap to monitor when resizing

How to reproduce

monitor = eDP-1, addreserved, 0, 0, 100, 0 snap { enabled = true monitor_gap = 101 }

resize the window when it's stuck in the leftmost window

Crash reports, logs, images, videos

https://github.com/user-attachments/assets/3966cb57-9cf0-40ae-ae17-c793dd8be726 sorry for the sound

myQwil commented 19 hours ago

Fix is now here: https://github.com/hyprwm/Hyprland/pull/8637