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 - In i3, game is rendered in a corner instead of the center.
Summary: In i3, game is rendered in a corner instead of the center.
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: 2.0.9
Hardware: x86_64 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-26 11:31 UTC by crocket
Modified: 2019-08-27 07:04 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.