Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/platform/linux/gtk_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ zero_native_gtk_host_t *zero_native_gtk_create(
host->allowed_external_urls = NULL;
host->allowed_external_urls_count = 0;

host->app = gtk_application_new(host->bundle_id, G_APPLICATION_DEFAULT_FLAGS);
host->app = gtk_application_new(host->bundle_id, G_APPLICATION_NON_UNIQUE);

return host;
}
Expand Down
3 changes: 2 additions & 1 deletion src/platform/linux/root.zig
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ const RunState = struct {
fn emit(self: *RunState, event: platform_mod.Event) void {
const handler = self.handler orelse return;
const context = self.handler_context orelse return;
handler(context, event) catch {
handler(context, event) catch |err| {
std.debug.print("zero-native linux emit error: {s} on event {s}\n", .{ @errorName(err), event.name() });
self.failed = true;
if (self.self) |linux| zero_native_gtk_stop(linux.host);
};
Expand Down
2 changes: 1 addition & 1 deletion src/platform/root.zig
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pub const WindowId = u64;
pub const max_windows: usize = 16;
pub const max_window_label_bytes: usize = 64;
pub const max_window_title_bytes: usize = 128;
pub const max_window_source_bytes: usize = 4096;
pub const max_window_source_bytes: usize = 8192;
pub const max_webviews: usize = 16;
pub const max_webview_label_bytes: usize = 64;
pub const max_webview_url_bytes: usize = 4096;
Expand Down