Description

Users with GNOME Shell installed have reported having issues with multi-monitor support when the monitors are not equally sized or the same aspect ratio.

If the application is moved from a smaller to larger monitor then the framebuffer will retain the size of the smaller monitor. Also if the monitors are reverse with the smaller on the left the Splash screen would start on the smaller but then the game would start and go fullscreen on a the larger (non-primary) monitor still with the smaller resolution framebuffer. Clicking on the black area outside (before the window has grabbed the mouse) will lock and warp the mouse to the outside area preventing it from entering the main area and preventing mouse input into the game.

The suggestion on Answerhub is because SDL maps all monitors as a large desktop (based on the screen information from xrandr). It looks as though the game is not correctly resizing or updating the framebuffer or window size when the window changes monitors.

Steps to Reproduce

This bug requires GNOME Shell installed on ubuntu and setup with two monitors one with a lower resolution than the other (for example one as 16:9 and one 16:10). Place the lower resolution monitor on the right and set it as the primary monitor.

To Install GNOME Shell on Ubuntu:

  1. sudo apt install -y gnome-session
  2. Logout and select gnome from the cog/picker, re-login

To reproduce the issue:

  1. Open the editor, build a sample project such as the Third Person game and run fullscreen in standalone mode. (-fullscreen to launch arguments)
  2. Open GNOME Activities (Windows Key). Re-position the fullscreen window on the left monitor.
  3. Place the mouse cursor at the bottom right of the screen so it will inside the black area and press the Windows Key again to close GNOME Activities.
  4. Open Activities again and re-position the fullscreen window back to the right monitor.

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Won't Fix
ComponentUE - Platform - Linux
Affects Versions4.18.1
CreatedDec 6, 2017
ResolvedAug 18, 2021
UpdatedAug 18, 2021