Raylib-cs icon indicating copy to clipboard operation
Raylib-cs copied to clipboard

[Monitors/Linux] When run from vs code or command line game does not start on the primary display

Open allora opened this issue 3 years ago • 0 comments

Before submitting a new issue, please verify and check:

  • [x] The issue is specific to Raylib-cs and not raylib
  • [x] I checked there is no similar issue already reported
  • [x] My code has no errors or misuse of Raylib-cs

Issue description

When the hello world project starts from VSCode in linux with multiple displays via F5, or from the command line, from a terminal or VSCode on the primary display, the game starts on a different monitor entirely (not the primary, or the focused display). Doing this in C, instead of C# results in expected behavior, where the game shows up on the display VSCode/terminal is on.

Steps

  • Use archlinux and have 2 or more monitors (I have 3 of asymmetric size)
  • Grab the hello world project
  • Open VSCode onto the primary display
  • Launch the game using F5
  • Game window appears on some other display

Environment

  • Hardware: Ryzen 5950X, Radeon 6700XT, 64GB Ram
  • Distro: Arch Linux
  • Window Manager: BSPWM
  • 3 Displays of varying resolutions (640x480, 1920x1080, 2560x1440)

Code example

Use the hello world example.

allora avatar Sep 21 '22 06:09 allora