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.91k stars 912 forks source link

Right Clicking in Final Fantasy XIV causes Camera to spin 90 Degrees Clockwise. #6257

Open vhalragnarok-ffxiv opened 6 months ago

vhalragnarok-ffxiv commented 6 months ago

System Info and Version

System/Version info ```sh Hyprland, built from branch at commit dirty (). Date: Tag: , commits: flags: (if any) System Information: System name: Linux Node name: vhal-pc Release: 6.9.1-1-default Version: #1 SMP PREEMPT_DYNAMIC Fri May 17 11:59:46 UTC 2024 (0c0b0b5) GPU information: 03: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]) 59:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev c9) (prog-if 00 [VGA controller]) os-release: NAME="openSUSE Tumbleweed" # VERSION="20240523" ID="opensuse-tumbleweed" ID_LIKE="opensuse suse" VERSION_ID="20240523" PRETTY_NAME="openSUSE Tumbleweed" ANSI_COLOR="0;32" # CPE 2.3 format, boo#1217921 CPE_NAME="cpe:2.3:o:opensuse:tumbleweed:20240523:*:*:*:*:*:*:*" #CPE 2.2 format #CPE_NAME="cpe:/o:opensuse:tumbleweed:20240523" BUG_REPORT_URL="https://bugzilla.opensuse.org" SUPPORT_URL="https://bugs.opensuse.org" HOME_URL="https://www.opensuse.org" DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed" LOGO="distributor-logo-Tumbleweed" plugins: ```

Bug or Regression?

Bug

Description

When right clicking in Final Fantasy XIV the camera spins 90 degrees clockwise. This behavior does not occur in Sway nor KDE Plamsa.

How to reproduce

To reproduce right click with no menus open in Final Fantasy XIV (using XIVLauncher).

Crash reports, logs, images, videos

https://www.youtube.com/watch?v=y7hir1l6gFA KDE Plasma (Not Bugged, Expected Behaviour)

https://www.youtube.com/watch?v=c_BUB2oj6CY Sway (Not Bugged, Expected Behaviour, not a wl-roots issue)

https://www.youtube.com/watch?v=fDGWsAMfVmE Hyprland (Bugged Behaviour)

vhalragnarok-ffxiv commented 6 months ago

Further testing: This happens when Final Fantasy XIV invokes XWayland. Using a WINE Build with partial Wayland Drivers alleviates the issue, so this is isolated to an interaction with XWayland. These drivers are pretty experimental and causes its own crashes in Final Fantasy XIV.

Further Further Testing: This bug does not happen when Software Cursor is checked in Final Fantasy XIV. It happens with Hardware Cursor under XWayland...

vhalragnarok-ffxiv commented 6 months ago

I am not sure when or how Sway fixed this bug but this was the MR that solved it in KDE:

https://invent.kde.org/plasma/kwin/-/merge_requests/5422

I am not sure if that is of any use to you.

thiphariel commented 2 months ago

Hi. I can confirm an exact similar behaviour, but I think its good to add the fact it mostly, if not always on fast click. If the click event is like 1s or more long, that camera spin wont ever happened

Oh and also, it happens on left click either btw

mochimisu commented 1 week ago

I run into this issue as well (random camera rotation on double click in xwayland on ff14), but it only happens if I have "Limit mouse operation to game window" enabled in the in-game settings. I don't see this issue when that setting is disabled.