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
Set monitor default geometry on Linux #398
Conversation
#define DEFAULT_MONITOR_WIDTH 720 | ||
#define DEFAULT_MONITOR_HEIGHT 364 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually we should take these values from windowManager
's options.default{Width|height}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That won't work if [window] height = 50%
is set
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was the issue with percents? I don't remember. all values should be in pixels in the end
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
String defaultWidth = app.appData["window_width"].size() > 0 ? app.appData["window_width"] : "100%";
We also don't have access to the WindowManager
in the Window
class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now working-I was running the wrong command from the local checkout
#363