-
Notifications
You must be signed in to change notification settings - Fork 6
Add support for geometry option to gui-metal #5
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
base: master
Are you sure you want to change the base?
Conversation
Thanks. I guess you want it to be the same as X11. In this case, what would happen if I give the following: |
Great feedback @jxy, I went ahead and added ParseGeom.c from Xenocara to handle the parsing of the geometry string. To answer your question when given:
|
@jxy Mind having another look at the latest changes to this PR? |
Just to make sure, is the geometry passed in for the frame rectangle? Do we still need |
Thanks for the feedback @jxy. I'm not sure I entirely understand your question about the frame rectangle, could you rephrase please? The changes in this PR do not contain |
Right, it is specified as the window size and location, but not the content size, which would be smaller. If it's what this parameter is supposed to do, it's fine. There's no point in leaving unused code in there, so perhaps just remove the whole ifdef. |
I noticed that for gut-metal
drawterm
ignores the-g geometry
option and always places thedrawterm
window in the center of the screen at ¾ of the screen size.The changes in this PR set the position and size of the
drawterm
window according to the-g geometry
option and defaulting to the existing behaviour when the-g
option has not been given.