Dota-2 icon indicating copy to clipboard operation
Dota-2 copied to clipboard

Mouse doesn't stay locked to window when alt tabbing (Linux)

Open MasterJubei opened this issue 9 months ago • 2 comments

  1. Gnome 46
  2. Linux Mint 22.1
  3. Kernel 6.11.0.17-generic
  4. Radeon 6900xt

I am using X11

This does not seem to affect Proton games, those lock the mouse even after alt tabbing. However with Dota 2, if I press the Windows key, I can sucessfully select other applications and go back to the window most of the time without issue.

However when alt tabbing and right clicking on a panel behind the window, the mouse does not successfully relock to the window.

Once this occurs, the only way to relock the mouse is to restart the game. Toggling dota_mouse_window_lock does not do anything.

MasterJubei avatar Mar 02 '25 04:03 MasterJubei

Is this in a multi-monitor configuration?

slouken avatar Mar 04 '25 01:03 slouken

I just did a fresh install of Linux Mint 22.1 Cinnamon and set up two monitors, and the behavior I'm seeing is that once I'm in a game, the Windows key does not let me select other applications, and Alt-Tab will minimize the game, but once I click on it in the task bar it comes back up and the mouse is locked to the window.

Did I miss a step in the repro case?

slouken avatar Mar 04 '25 01:03 slouken