Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

`follow_mouse=2` (text) selection focus issues

Open Rabcor opened this issue 1 year ago • 0 comments

Hyprland Version

System/Version info 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: Murmaider Release: 6.6.17-1-lts Version: #1 SMP PREEMPT_DYNAMIC Sat, 17 Feb 2024 08:28:50 +0000

GPU information: 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA104 [Geforce RTX 3070 Ti Laptop GPU] [10de:24a0] (rev a1) (prog-if 00 [VGA controller]) 06:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [Radeon 680M] [1002:1681] (rev c7) (prog-if 00 [VGA controller])

os-release: NAME="EndeavourOS" PRETTY_NAME="EndeavourOS" ID="endeavouros" ID_LIKE="arch" BUILD_ID="2023.11.17" ANSI_COLOR="38;2;23;147;209" HOME_URL="https://endeavouros.com" DOCUMENTATION_URL="https://discovery.endeavouros.com" SUPPORT_URL="https://forum.endeavouros.com" BUG_REPORT_URL="https://forum.endeavouros.com/c/arch-based-related-questions/bug-reports" PRIVACY_POLICY_URL="https://endeavouros.com/privacy-policy-2" LOGO="endeavouros"

plugins:

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)

Bug or Regression?

Bug

Description

When follow_mouse=2 is set, it seems to trigger focus shift both on mouse press and on mouse release.

Triggering it on mouse release is harmful and this issue shows the reason why.

The problem is, if 2 windows are side by side, as is common for tiling WMs, When you say try to select text in the window on the right, you click and drag your mouse over the text, and maybe your cursor accidentally goes a little over to the window on the left. Then you release the mouse to confirm the selection, but oops, now your focus is on the wrong window.

There are a few possible solutions to this, but disabling focus shift on mouse release for this follow_mouse option is the simplest fix.

How to reproduce

  • Set follow_mouse=2
  • Open 2 windows side by side
  • Try to select something in one of the windows, and when you release the mouse button after you've made your selection, make sure your cursor is on the other window.

Crash reports, logs, images, videos

No response

Rabcor avatar Feb 21 '24 10:02 Rabcor