-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add launch command "--start-as" option #6026
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
Comments
As I said in the previous issue, this is not something thats worth the |
@kovidgoyal glfw/cocoa_window.m if (wndconfig->maximized)
[window->ns.object zoom:nil]; glfw/wl_window.c if (wndconfig->maximized)
window->wl.maximize_on_first_show = true; I believe that the function glfwCreateWindow needs extra parameters for this purpose. Related issue: |
On Thu, Feb 16, 2023 at 03:11:26AM -0800, page-down wrote:
@kovidgoyal
How do I set the value for `wndconfig->maximized`?
glfwWindowHint()
If we can get the following code to work when the window is created, the window will be displayed in the maximized state. So the maximizing animation will not appear.
```objc
if (wndconfig->maximized)
[window->ns.object zoom:nil];
```
I believe that the function glfwCreateWindow needs extra parameters for this purpose.
No, you can just call glfwWindowHint() before calling
glfwCreateWindow(). Since its global it will eed to be called for every
glfwCreateWindow().
…
Related issue:
#4949
--
Reply to this email directly or view it on GitHub:
#6026 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
--
_____________________________________
Dr. Kovid Goyal
https://www.kovidgoyal.net
https://calibre-ebook.com
_____________________________________
|
🙏 Thank you @kovidgoyal - I was planning to look into it this weekend. |
Is your feature request related to a problem? Please describe.
See issue #6021
Describe the solution you'd like
Add
--start-as
to the launch command option to control how the initial kitty window is created.Default: normal
Choices: fullscreen, maximized, minimized, normal
example to launch with a maximized window.
launch --type=os-window --start-as=maximized
The
--start-as
option is already available in the CLI https://sw.kovidgoyal.net/kitty/invocation/#cmdoption-kitty-start-asThe text was updated successfully, but these errors were encountered: