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

Cannot resize screen using window manager on Linux #552

Open muff1nman opened 9 years ago

muff1nman commented 9 years ago

Was working fine for the past couple months and just today I cannot resize the window. If I do, I lose all control and have to kill -9 the process.

muff1nman commented 9 years ago

Ah, I remembered I just upgraded Catalyst this last week. 90% sure that is what the "problem" is. 14.20 is what I upgraded to. I do not remember what is was last.

gdrewb-valve commented 9 years ago

How are you resizing the window, by choosing new video settings or with a window manager override (the window is not normally resizable)?

muff1nman commented 9 years ago

I resize the window using the window manager - xmonad. I know, I know... xmonad is not supported. But it was working brilliantly on my dual head setup for over two months. Last night I tried to bisect the issue in AMD graphics drivers but the three or four I tried were all showing the same issue. So I can't really say whether it was an update with AMD or Dota that has caused the issue to start showing up.

Also, the resize is immensely helpful as normally dota starts on my primary monitor which is rotated 90 degrees. It'll would start up great at 1200 width and 1920 height (borderless window) and then I could drag the window to my normal monitor, resize and it was perfect.

gdrewb-valve commented 9 years ago

Resizing is only marginally supported so this will be a low-priority issue.

QORTEC commented 9 years ago

I have the same issue, I have a Primary monitor 1080x1920, Secondary monitor 1920x1080. Dota 2 Reborn launches on the primary monitor in undesirable resolutions (even in windowed mode)... Before Dota 2 Reborn I used to use the following launcher options -windowed -w 1918 -h 1027 -x 1080 -y 660 however they do not work any more.

@muff1nman I was reading #13 and found the following launcher option -sdl_displayindex #, this option tells Dota 2 Reborn to launch on monitor #. [replace # with your monitor number, for me its monitor 1] With this option Dota 2 Reborn launches on my preferred monitor at the correct resolutions.

Hopefully Dota 2 Reborn will copy implement a few PC friendly game options such as a in game option to select the preferred monitor.

Lightsockie commented 8 years ago

Had the same problem as QORTEC and what they said fixed it for me.

I tried changing the video.cfg file directly too (the correct one, even) but it seems it gets overridden at launch. Would be cool if we had an option for which GPU/screen to use in video setings

brandondelpozo commented 1 year ago

I have the same problem, I've tried xdotool and wmctrl but sadly no solution for Dota2 in ubuntu :(