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.8k stars 904 forks source link

Tablet doesn't move window focus in new cursor system #5989

Open Ciel-MC opened 6 months ago

Ciel-MC commented 6 months ago

Hyprland Version

Hyprland, built from branch main at commit 67a5377b41f121017ed4295a3a592a19b4b7fbfb  (core: remove wayland sockets on exit (5959)).
Date: Thu May 9 20:39:15 2024
Tag: v0.40.0-35-g67a5377b, commits: 4641

flags: (if any)

System Information:
System name: Linux
Node name: CielPC
Release: 6.8.9-zen1-2-zen
Version: #1 ZEN SMP PREEMPT_DYNAMIC Tue, 07 May 2024 22:06:02 +0000

GPU information: 
0d:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900 XTX/7900M] [1002:744c] (rev c8) (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?

Regression

Description

When you move the mouse with a graphics tablet, the focused window doesn't move with it

How to reproduce

Pre-req: Have focus follow mouse on

  1. Plug in table
  2. Move cursor with tablet

Crash reports, logs, images, videos

No response

callyral commented 6 months ago

I can confirm that this also happens to me, I have input follow_mouse set to 2, and clicking on windows with the mouse changes the focus, but focus does not change when I do the same with my tablet pen.

I have a Wacom CTL-4100 and use OpenTabletDriver, although not using OTD does not change the issue. The only way to "fix" this is to use Absolute Mode and set the pen binding to a left-click, although there is no pen pressure in Absolute Mode.

AFAIK on other compositors the expected behavior is for pressing the pen on the tablet to act as a mouse click.

Ciel-MC commented 6 months ago

AFAIK on other compositors the expected behavior is for pressing the pen on the tablet to act as a mouse click.

It’s broken by a recent attempt at rewriting cursor system in Hyprland and the tablet support was a bit sketchy. It worked before if you absolutely need it working.

Vladimir-csp commented 2 weeks ago

Lots of other issues with tablet on v0.44.1 (mouse or touchpad not affected):

fufexan commented 2 weeks ago

Hovering the pen over buttons also doesn't trigger the hovered state.