ValveSoftware / Dota-2

Tracker for issues specific to Linux and Mac in the Reborn client. If you have a general issue or non-system-specific feature request please go to dev.dota2.com
470 stars 38 forks source link

When using two monitors, Alt+drag cursor to send signal from the center of the whole display instead of the gaming monitor #1980

Open AlynxZhou opened 3 years ago

AlynxZhou commented 3 years ago

Your system information

Please describe your issue in as much detail as possible:

Describe what you expected should happen and what did happen. Please link any large pastes as a Github Gist.

I have a two-monitor setup, and I set Dota2 to fullscreen to one of my monitor, and when I use Alt+drag cursor to send a signal, the mouse cursor is set to the center of the whole display (the center of the two monitors), instead of the center of current gaming monitor.

Steps for reproducing this issue:

  1. A 2 monitors setup.
  2. Open Dota2 in fullscreen mode.
  3. Alt+drag cursor to see where your cursor is.
kisak-valve commented 3 years ago

Hello @AlynxZhou, can you check if your desktop environment has an alt + left click global hotkey? I suspect that is part of what's causing your issue. Something similar to what's described in https://askubuntu.com/questions/118151/how-do-i-disable-window-move-with-alt-left-mouse-button-in-gnome-shell.

AlynxZhou commented 3 years ago

Screenshot from 2021-09-26 07-31-34

It's super, not alt.

aploskov commented 2 years ago

I use Alt+drag cursor to send a signal, the mouse cursor is set to the center of the whole display (the center of the two monitors), instead of the center of current gaming monitor.

Hi, @kisak-valve, this problem can be reproduced by one more thing:

It looks like you detect center of the screen position by selecting center of the whole x11 surface position, not only one monitor.