Add support for geometry option to gui-metal#5
Add support for geometry option to gui-metal#5afh wants to merge 6 commits intoPlan9-Archive:masterfrom
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
drawtermignores the-g geometryoption and always places thedrawtermwindow in the center of the screen at ¾ of the screen size.The changes in this PR set the position and size of the
drawtermwindow according to the-g geometryoption and defaulting to the existing behaviour when the-goption has not been given.