We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4772

Summary: In i3, game is rendered in a corner instead of the center.
Product: SDL Reporter: crocket <crockabiscuit>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.9   
Hardware: x86_64   
OS: Linux   

Description crocket 2019-08-26 11:31:00 UTC
Initially, game is rendered at the center of an i3 window.

After changing i3 layout, game is rendered in corners.

Refer to https://github.com/chocolate-doom/chocolate-doom/issues/1191 for screenshots.
Comment 1 crocket 2019-08-27 06:48:03 UTC
Putting "export SDL_VIDEO_CENTERED=1" in ~/.profile and logging in again works around the issue.


SDL_VIDEO_CENTERED centers a floating i3 window on the screen and centers the game in a tiled i3 window.
Comment 2 crocket 2019-08-27 07:04:56 UTC
Correction // SDL_VIDEO_CENTERED doesn't center a game in a window.
It only centers a window on a screen.