Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

Left click, right click, and window selection stop working randomly

Open Zaedus opened this issue 1 year ago • 5 comments

Bug or Regression?

Bug

System Info and Version

System/Version info
Hyprland, built from branch  at commit 2566d818848b58b114071f199ffe944609376270  ().
Date: 2024-06-16
Tag: , commits: 

flags: (if any)


System Information:
System name: Linux
Node name: finch
Release: 6.6.31
Version: #1-NixOS SMP PREEMPT_DYNAMIC Fri May 17 10:02:40 UTC 2024


GPU information: 


os-release: ANSI_COLOR="1;34"
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="24.11.20240607.051f920"
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
IMAGE_ID=""
IMAGE_VERSION=""
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 24.11 (Vicuña)"
SUPPORT_URL="https://nixos.org/community.html"
VERSION="24.11 (Vicuña)"
VERSION_CODENAME="vicuña"
VERSION_ID="24.11"


plugins:

======Config-Start======


Config File: /home/cs/.config/hypr/hyprland.conf: Read Succeeded
exec-once = /nix/store/bnipzdfv788l7yvgn7k7s7gp76sd1zpz-dbus-1.14.10/bin/dbus-update-activation-environment --systemd DISPLAY HYPRLAND_INSTANCE_SIGNATURE WAYLAND_DISPLAY XDG_CURRENT_DESKTOP && systemctl --user stop graphical-session.target && systemctl --user start hyprland-session.target
$mod=SUPER
dwindle {
  force_split=2
}

general {
  border_size=2
  col.active_border=rgba(4AECB1ff) rgba(f2e08fff) 45deg
}

input {
  touchpad {
    natural_scroll=false
    tap-to-click=true
  }
  follow_mouse=2
  kb_layout=us
  mouse_refocus=false
}

misc {
  disable_hyprland_logo=true
  disable_splash_rendering=true
}
bind=$mod,       Return,                exec,       kitty
bind=$mod,       f,                     exec,       kfirefox
bind=$mod,       Space,                 exec,       sh -c "$(tofi-drun)"
bind=$mod SHIFT, q,                     exit
bind=$mod,       q,                     killactive
bind=,           XF86MonBrightnessUp,   exec,       /nix/store/81id03dynf716msd4js4z6gj6xy2gqkb-brightnessctl-0.5.1/bin/brightnessctl s 5%+
bind=,           XF86MonBrightnessDown, exec,       /nix/store/81id03dynf716msd4js4z6gj6xy2gqkb-brightnessctl-0.5.1/bin/brightnessctl s 5%-
bind=,           XF86AudioRaiseVolume,  exec,       /nix/store/pn9glkalcj7i5p549dpsl1c46pkb13xr-pulseaudio-17.0/bin/pactl set-sink-volume @DEFAULT_SINK@ +5%
bind=,           XF86AudioLowerVolume,  exec,       /nix/store/pn9glkalcj7i5p549dpsl1c46pkb13xr-pulseaudio-17.0/bin/pactl set-sink-volume @DEFAULT_SINK@ -5%
bind=,           XF86AudioMute,         exec,       /nix/store/pn9glkalcj7i5p549dpsl1c46pkb13xr-pulseaudio-17.0/bin/pactl set-sink-mute @DEFAULT_SINK@ toggle
bind=SHIFT,      XF86AudioMute,         exec,       /nix/store/pn9glkalcj7i5p549dpsl1c46pkb13xr-pulseaudio-17.0/bin/pactl set-source-mute @DEFAULT_SOURCE@ toggle
bind=,           XF86AudioMicMute,      exec,       /nix/store/pn9glkalcj7i5p549dpsl1c46pkb13xr-pulseaudio-17.0/bin/pactl set-source-mute @DEFAULT_SOURCE@ toggle
bind=$mod,       1, workspace,             1
bind=$mod SHIFT, 1, movetoworkspacesilent, 1
bind=$mod,       2, workspace,             2
bind=$mod SHIFT, 2, movetoworkspacesilent, 2
bind=$mod,       3, workspace,             3
bind=$mod SHIFT, 3, movetoworkspacesilent, 3
bind=$mod,       4, workspace,             4
bind=$mod SHIFT, 4, movetoworkspacesilent, 4
bind=$mod,       5, workspace,             5
bind=$mod SHIFT, 5, movetoworkspacesilent, 5
bind=$mod,       6, workspace,             6
bind=$mod SHIFT, 6, movetoworkspacesilent, 6
bind=$mod,       7, workspace,             7
bind=$mod SHIFT, 7, movetoworkspacesilent, 7
bind=$mod,       8, workspace,             8
bind=$mod SHIFT, 8, movetoworkspacesilent, 8
bind=$mod,       9, workspace,             9
bind=$mod SHIFT, 9, movetoworkspacesilent, 9
exec=/nix/store/xljiwmpxdfyjnz6g6ikdi57jjcbssiyw-swaybg-1.2.1/bin/swaybg -i /nix/store/fyjlnk317ng6ib9gsxal405552f30hd5-radium.png --mode fill
monitor=eDP-1,1920x1080@60,0x0,1

======Config-End========

Description

Randomly, my touchpad buttons stop working and I can unfocus on a window no matter how much I move my mouse and click on other windows. I'm on NixOS so I've switched to the official flake, messed around with my settings a bunch, but I can't fix it and can't find anyone who's had a similar issue. I'm suspicious that Hyprland thinks I'm holding the left mouse button while on a window, but I'm not sure how to prove that. As you can see in the following video, I'm clicking, but unable to actual affect anything in Hyprland.

https://github.com/hyprwm/Hyprland/assets/42098470/e957ab96-bd15-4ae2-9d40-6205e68003ef

How to reproduce

Absolutely no clue.

Crash reports, logs, images, videos

No response

Zaedus avatar Jun 17 '24 01:06 Zaedus

Same here, happens once in a while, the apps just don't receive touchpad events at all. Like can't click links in chrome or select text in foot.

vafu avatar Jun 23 '24 01:06 vafu

Happened with my mouse as well. Disconnecting and reconnecting mouse worked. Don't know if I'll be able to reproduce it. But it isn't the first time this has happened Version v0.43.0 btw

kidfromjupiter avatar Oct 17 '24 15:10 kidfromjupiter

this happen to me too, but only left click, right click and middle mouse still ok, I have to restart Hyperland to make it work

taikhuu avatar Oct 24 '24 16:10 taikhuu

Happened to me. No idea whats happened, left click and middle click still work, but rclick completely nonfunctional. Unplugging and replugging doesnt fix it, and I have to fully restart Hyprland to get it to work again. Quite infuriating.

Hyprland v0.46.0-6-g5f1df55f, w/ UWSM built against: aquamarine 0.5.1 hyprlang 0.6.0 hyprutils 0.2.6 hyprcursor 0.1.10 hyprgraphics 0.1.1

EDIT: My mouse is also a G502 Hero. So far has happened 4~ times, rclick randomly not working.

shardofgl4ss avatar Dec 17 '24 22:12 shardofgl4ss

Im gonna add onto this in the hopes of it getting found, if this is actually a genuine hyprland issue. The bug is in the official arch repo version of Hyprland, so it has made it upstream from the git version in the AUR (if that's how it works? correct me if im wrong.), and only seems to effect certain people, (perhaps maybe only people with g502?). It happens just about every day/other day now with varying duration, sometimes for a bit, sometimes many minutes, and at random, If any of you can give me some ideas to try/test to maybe find the root cause while its happening, I would definitely try them, however I'm not very familiar with debugging.

As of right now, my right mouse button has stopped working again, and it has NOT come back, even using Piper to 'reset' it via changing right-click button, unplugging and replugging it, and I know restarting hyprland will fix it anyway, so.. I'll just do that I guess. Its a pain though, when playing any game and then it stops working. Just the right click. Thats it.

shardofgl4ss avatar Jan 12 '25 13:01 shardofgl4ss

I can confirm it happens with a touchpad too. moving the cursor works, multi finger gestures work. Two finger scrolling doesn't work, neither does clicking. It usually goes away within a minute or two.

Edit: I tried to recreate what lead to the bug today, and I found out that it happens quite consistently, when dragging videos to the timeline of the reaper DAW. And found out I can get rid of the bug, when I open Rofi with a keyboard shortcut, no idea why. But I've definitely had this bug happen before, when I was not using reaper.

PribylIon avatar Apr 03 '25 17:04 PribylIon

Hello there!

This issue has been closed, as we are moving from issues to discussions. More about this can be found here and in #9854.

Firstly, please make sure this issue is still relevant in latest Hyprland. If so, we ask you to open a discussion (please read the discussion guidelines first, in the pinned post)

Thank you for your understanding!

vaxerski avatar Apr 05 '25 19:04 vaxerski