halflife icon indicating copy to clipboard operation
halflife copied to clipboard

[Half-Life][Bug][Linux] Always using the left screen to launch on a multi-display setup.

Open greymood09 opened this issue 6 years ago • 8 comments

Quick take on my setup: 2x 1080p displays, sitting in "left and middle" positions in extended mode. Left: DisplayPort, Middle: HDMI Arch(btw) Linux, XFCE4 DE.

When Half-Life launches, it opens on my left screen instead of the middle one (Steam is open on the middle screen). I've tried going windowed, moving it to the 'correct' screen but it returns to the left one once set back to full-screen. Other games are able to launch on the same screen they're being launched from (examples are CS:GO and Rocket League).

This behavior is identical on beta release.

greymood09 avatar Jun 29 '19 23:06 greymood09

I can confirm that - a fix would be very nice. I'm using the latest Nvidia-Driver, but this is already a issue since Halflife (cstrike) was released on Steam.

fred0r avatar Aug 24 '19 23:08 fred0r

Can you confirm that you're using XFCE4? I now have switched to another WM and it launched from whichever screen had focus/steam on it, so, it seems to be a WM-specific issue.

greymood09 avatar Aug 25 '19 06:08 greymood09

I had this behavior with Ubuntu / XFCE4 in the past. Now i'm on Arch with Cinnamon and i've it also.

fred0r avatar Aug 25 '19 15:08 fred0r

I can confirm I'm having this issue on XFCE and xfwm4-4.14. It happens in every GoldSrc title I've tried. My current solution has been to launch the game with -window -noborder then click and drag the window over to the correct monitor holding down the Alt key by default in XFCE. Then hiding the xfce4-panel on that monitor. Not the best solution but it works.

I hope this gets a proper solution. I have a vertical monitor on the left and my main horizontal monitor on the right.

mirrornoir avatar Sep 15 '19 13:09 mirrornoir

Check this article and see if it helps: http://anki3d.org/solving-the-linux-multi-monitor-problem-with-sdl-2-0/

SamVanheer avatar Sep 16 '19 09:09 SamVanheer

Same issue.

I don't have it with Sven Co-op or Source games though.

Currently I use a global shortcut to execute this script in order to move a game to another monitor. This works for fullscreen videomode too, so no need for -window -noborder options.

FreeSlave avatar Dec 06 '20 14:12 FreeSlave

I read in another Issue/Thread: Just right-click on the Game and select 'Move to other Monitor' And ever since i use this when it happens.

fred0r avatar Dec 08 '20 09:12 fred0r

Mine is worse. It launches on the left screen, but also outside of the screen. So now I can't even reach the screen resolution settings in order to possibly fix or change it:

Image

This is my system info:

Image

shaunroselt avatar Aug 22 '25 11:08 shaunroselt