center linux game on screen at startup

Reporter: time-killer-games  |  Status: closed  |  Last Modified: July 21, 2019, 12:43:11 AM

this effects all platforms and on windows and mac it is redundant, but oh well, it is required to initialize_everything() first, to determine game window size, before linux game can be centered properly, rather than opening in the corner of the screen or w/e.
@RobertBColton @JoshDreamland it's worth noting that when i test this locally, occasionally, it will still open the game window in the corner regardless of these changes, at seemingly random, but not most the time. It's really weird, it's like the WM is fighting to override our code so that it opens the default place (the corner) rather than the center.

Codecov Report

Merging #1788 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1788      +/-   ##
+ Coverage   24.76%   24.76%   +<.01%     
  Files         170      170              
  Lines       16680    16681       +1     
+ Hits         4130     4131       +1     
  Misses      12550    12550
Impacted Files Coverage Δ
ENIGMAsystem/SHELL/Platforms/General/PFmain.cpp 80.76% <100%> (+0.37%) ⬆️
ENIGMAsystem/SHELL/Platforms/xlib/XLIBmain.cpp 31.31% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d779042...bb1279d. Read the comment docs.

Please sign in to post comments, or you can view this issue on GitHub.