Closed Okkurat closed 3 months ago
Can you try to bind the fullscreen dispatcher to some key and press it twice on the game's window? That might be a workaround it.
Can you try to bind the fullscreen dispatcher to some key and press it twice on the game's window? That might be a workaround it.
You mean these? bind = CONTROLALT, f, fullscreen,1 bind = $mainMod CONTROLALT, f, fullscreen
tried them with no effect.
Try with fullscreen,0
For example:
bind = ,F11,fullscreen,0
Try with fullscreen,0 For example:
bind = ,F11,fullscreen,0
That did not fix it.
To give more info, the Dota 2 cursor stays and the window manager still treats as if the mouse is in the game so despite my mouse being in other monitors and windows, they are not interactable.
In the version where this isnt an issue, I have the issue with windows sometimes not focusing correctly, like not being able to type in the window I am interacting with and the input getting stuck in other window. There were some open issues about them (cant find them right now), but they are fixed on the git package but this issue now comes up. Maybe thats a hint?
I now confirm that it happens on the latest release
Since this in release now, I did the simple workaround of putting my monitor position far out from my other monitors so that this thing cannot happen at all.
Naturally this is kinda handicapped solution since I can not move to other monitors with my mouse (only through keybinds) while this setting is on.
so for example
# Monitors
monitor=DP-3, 1680x1050, 0x0, 1
#monitor=HDMI-A-1, 1920x1080, 1680x0, 1
monitor=HDMI-A-1, 1920x1080, 8000x0, 1
monitor=DP-2, 1280x1024, 3600x0, 1
I hope this helps anyone who wants to play Dota properly using Hyprland right now.
Note, this is a regression, perhaps included with the backend rewrite, but could be anything. Will check later.( no idea how to build old versions with nix, sorry :) )
Can confirm otherwise. Also the cursor seems to vanish when moving out and in of dota.
Not sure if it is fixed on git as git crashes for me unfortunately.
I can confirm this happens on -git and 0.40.0. 0.39.0 is fine and mouse locks to the dota window properly. No amount of toggling fullscreen or what have you helps.
So I found myself with a bit of time and did a proper bisect of this regression. The first bad commit is https://github.com/hyprwm/Hyprland/commit/25aec3ac8ce65ed224f025f8f6dfef73780577a4
The issue is pretty easy to reproduce: just enter demo mode with a hero and see that the cursor is not locked to the window.
Its been sitting here for quite a while, could you look at it @vaxerski pretty please? I can help with testing or whatever.
I have many bugs to fix man, feel free to tinker yourself. You can also add an offset to your monitor so that you have a gap in layout, that will prevent the mouse from leaving the monitor
All fine, thanks for your awesome work.
I will try to tinker a bit, but I know next to nothing about cpp/wayland so slim chances of success. If anybody else is willing to try, please do.
The current release version of Hyprland seems to bring more problems with Dota.
I now have problems with my alt hotkeys whenever I switch workspaces (in this case monitors, see above) via hotkeys. The alt presses arent registering properly. I can fix it if I "switch" to the same workspace again which the game is in, while being there. That usually fixes it.
This seems to be fixed now with https://github.com/hyprwm/Hyprland/pull/6627. I can confirm that mouse locks properly in dota 2 for me now.
Yep, its working for me as well
Hyprland Version
System/Version info
```sh Hyprland, built from branch main at commit cddeec47a1fc0e70d8598fd10c29cd0e9489999f (keybinds: make the keybind manager check for session lock (5894)). Date: Sun May 5 21:28:14 2024 Tag: v0.40.0-11-gcddeec47, commits: 4617 flags: (if any) System Information: System name: Linux Node name: archlinux Release: 6.8.9-arch1-1 Version: #1 SMP PREEMPT_DYNAMIC Thu, 02 May 2024 17:49:46 +0000 GPU information: 28:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT] [1002:73df] (rev c0) (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?
Bug
Description
In the AUR package of hyprland (as opposed to the current package in Arch (0.39.1-5) introduces an issue in Dota 2.
While in a match, the mouse is supposed to be locked in to the game window and moving the cursor to the edge should not move the cursor outside the game. This works as expected in the version 0.39.1-5, but in the git package, the mouse moves out of bounds and the Dota 2 mouse icon also stays.
My setup is 3 monitors and the Dota 2 is in the middle screen.
How to reproduce
Launch Dota 2. Start a match with bots, pick a hero, spawn and try to move the mouse out out of the game.
Crash reports, logs, images, videos
No response