mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
apprt/glfw: launch window on startup
This commit is contained in:
@ -65,6 +65,14 @@ pub const App = struct {
|
|||||||
// up when we take a pass at cleaning up the dev mode.
|
// up when we take a pass at cleaning up the dev mode.
|
||||||
if (DevMode.enabled) DevMode.instance.config = config;
|
if (DevMode.enabled) DevMode.instance.config = config;
|
||||||
|
|
||||||
|
// Queue a single new window that starts on launch
|
||||||
|
_ = core_app.mailbox.push(.{
|
||||||
|
.new_window = .{},
|
||||||
|
}, .{ .forever = {} });
|
||||||
|
|
||||||
|
// We want the event loop to wake up instantly so we can process our tick.
|
||||||
|
glfw.postEmptyEvent();
|
||||||
|
|
||||||
return .{
|
return .{
|
||||||
.app = core_app,
|
.app = core_app,
|
||||||
.config = config,
|
.config = config,
|
||||||
|
@ -283,7 +283,7 @@ pub const App = struct {
|
|||||||
// Queue a new window
|
// Queue a new window
|
||||||
_ = core_app.mailbox.push(.{
|
_ = core_app.mailbox.push(.{
|
||||||
.new_window = .{},
|
.new_window = .{},
|
||||||
}, .{ .instant = {} });
|
}, .{ .forever = {} });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user