Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openboardview: add "unix" X11 geometry flag handling #181

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dithotxgh
Copy link

Add the unix/linux specific X11 XParseGeometry() along with the '-g
' flag to handle window sizing and positioning.

To get there, added 2 fields to the 'struct global', tweaked the
parse_parameters() to set the new values if provided on the command
line.

Refactored the call to SDL_CreateWindow() to always use the global
values start_x and start_y, which both now default to
SDL_WINDOWPOS_CENTERED.

Added the X11 shared library target only if not on WIN32 to
src/openboardview/CMakeLists.txt.

Add the unix/linux specific X11 XParseGeometry() along with the '-g
<geometry>' flag to handle window sizing and positioning.

To get there, added 2 fields to the 'struct global', tweaked the
parse_parameters() to set the new values if provided on the command
line.

Refactored the call to SDL_CreateWindow() to always use the global
values start_x and start_y, which both now default to
SDL_WINDOWPOS_CENTERED.

Added the X11 shared library target only if not on WIN32 to
src/openboardview/CMakeLists.txt.
@dithotxgh
Copy link
Author

This is my first pull request ever, so I am sure there is something funky about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant