Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cursor:no_warps causes focus to get stuck on window capturing mouse (Cyberpunk 2077) #9075

Open
4 of 6 tasks
DerEchteJoghurt opened this issue Jan 15, 2025 · 0 comments
Open
4 of 6 tasks
Labels
bug Something isn't working

Comments

@DerEchteJoghurt
Copy link

DerEchteJoghurt commented Jan 15, 2025

Already reported ? *

  • I have searched the existing open and closed issues.

Regression?

I don't know, I started using Hyprland only recently

System Info and Hyprland Version

System/Version info
Hyprland 0.46.2 built from branch  at commit 0bd541f2fd902dbfa04c3ea2ccf679395e316887  (version: bump to 0.46.2).
Date: Thu Dec 19 19:26:47 2024
Tag: v0.46.2, commits: 5566
built against:
 aquamarine 0.7.0
 hyprlang 0.6.0
 hyprutils 0.3.3
 hyprcursor 0.1.11
 hyprgraphics 0.1.1


flags set:
debug


System Information:
System name: Linux
Node name: hostname
Release: 6.12.9-arch1-1
Version: #1 SMP PREEMPT_DYNAMIC Fri, 10 Jan 2025 00:39:41 +0000


GPU information:
09:00.0 VGA compatible controller [0300]: NVIDIA Corporation AD104 [GeForce RTX 4070 SUPER] [10de:2783] (rev a1) (prog-if 00 [VGA controller])
NVRM version: NVIDIA UNIX Open Kernel Module for x86_64  565.77  Release Build  (archlinux-builder@)


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:

Description

When setting cursor:no_warps to true and attempting to switch focus from Cyberpunk 2077, the focus immediately jumps back to the game. The same happens when switching workspaces to another monitor. See attached video.
I assume this works with cursor warps because when warping the cursor, the game no longer captures the mouse?

I've used XOrg with BSPWM in the past, where switching focus detaches the mouse from the window, allowing it to be moved freely. I attached a video as reference for this as well.

How to reproduce

  1. Set cursor:no_warps to true
  2. Launch Cyberpunk 2077 (or any other window capturing the mouse?)
  3. Try move focus with SUPER + left or changing the workspace to a workspace on another monitor
  4. The focus will move back to the game immediately

Attach not paste

  • I understand that all text files must be attached, and not pasted directly. If not respected, this issue will likely get closed as spam

Checklist of files to include below

  • Hyprland config - hyprctl systeminfo -c (always include)
  • Crash report (always include in case of crash)
  • Video (always include in case of a visual bug)
  • Logs (might contain useful info such as errors)

Additional info & File uploads

When attempting to move focus (you can see the focus jump to the other window for a split second and then jump back to the game):

2025-01-15.19-50-04.mp4

I was able to reproduce this with the following config which is the auto generated one but only sets cursor:no_warps to true:
hyprland.conf

Expected behavior (XOrg with BSPWM):

2025-01-15.20-37-58.mp4
@DerEchteJoghurt DerEchteJoghurt added the bug Something isn't working label Jan 15, 2025
@DerEchteJoghurt DerEchteJoghurt changed the title cursor:no_warps causes focus to get stuck on XWayland window capturing mouse (Cyberpunk 2077) cursor:no_warps causes focus to get stuck on window capturing mouse (Cyberpunk 2077) Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant