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
20.95k stars 879 forks source link

activewindowv2 is called when not needed #4913

Open fdev31 opened 7 months ago

fdev31 commented 7 months ago

Hyprland Version

Hyprland, built from branch HEAD at commit 84ab8d11e8951a6551d1e1bf87796a8589da6d47 (props: bump ver to 0.35.0). ```sh Hyprland, built from branch HEAD at commit 84ab8d11e8951a6551d1e1bf87796a8589da6d47 (props: bump ver to 0.35.0). Date: Mon Feb 5 01:59:02 2024 Tag: v0.35.0 flags: (if any) System Information: System name: Linux Node name: gamix Release: 6.6.18-1-lts Version: #1 SMP PREEMPT_DYNAMIC Fri, 23 Feb 2024 14:58:40 +0000 GPU information: 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation AD103 [GeForce RTX 4080] [10de:2704] (rev a1) (prog-if 00 [VGA controller]) os-release: NAME="Arch Linux" PRETTY_NAME="Arch Linux" ID=arch BUILD_ID=rolling ANSI_COLOR="38;2;23;147;209" HOME_URL="https://archlinux.org/" DOCUMENTATION_URL="https://wiki.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues" PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" LOGO=archlinux-logo plugins: ```

Bug or Regression?

Bug

Description

activewindowv2 event is emitted whenever a window is clicked (press and release) with a modifier to rescale or move it. One click = 2 useless activewindowv2 events.

How to reproduce

move or resize any client window using the mouse + modifier.

Crash reports, logs, images, videos

No response

fdev31 commented 7 months ago

There is another issue with this event, sometimes it's triggered repeatedly while dragging a window or changing focus. But I can't figure the scenario to reproduce it. It would be nice to not receive this event more than once in a row with the same client address...