aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/src/apprt.zig
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-09-10 21:51:57 +0300
committerGitHub <noreply@github.com>2026-09-10 21:51:57 +0300
commit425c86179791cd32e2d4ce0ae7f269940b4b0663 (patch)
treee52c4383a6d69216cbe2a32638bf90841d7e2189 /vendor/libghostty-vt/src/apprt.zig
parent90e947a6e26e02f10ec7f1694c4eb5b78a86406b (diff)
chore: upgrade libghostty and preserve terminal behavior (#3906)
Diffstat (limited to 'vendor/libghostty-vt/src/apprt.zig')
-rw-r--r--vendor/libghostty-vt/src/apprt.zig10
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/libghostty-vt/src/apprt.zig b/vendor/libghostty-vt/src/apprt.zig
index c467f180..22256cc9 100644
--- a/vendor/libghostty-vt/src/apprt.zig
+++ b/vendor/libghostty-vt/src/apprt.zig
@@ -27,6 +27,7 @@ pub const Target = action.Target;
pub const ContentScale = structs.ContentScale;
pub const Clipboard = structs.Clipboard;
pub const ClipboardContent = structs.ClipboardContent;
+pub const ClipboardReadResult = structs.ClipboardReadResult;
pub const ClipboardRequest = structs.ClipboardRequest;
pub const ClipboardRequestType = structs.ClipboardRequestType;
pub const ColorScheme = structs.ColorScheme;
@@ -51,6 +52,15 @@ pub const runtime = switch (build_config.artifact) {
pub const App = runtime.App;
pub const Surface = runtime.Surface;
+/// True if all GPU operations (drawing, resource creation and
+/// destruction) must happen on the app thread. This is the case
+/// when the graphics context is owned by the app thread (GTK's
+/// GLArea). When false, the render thread performs GPU operations
+/// itself.
+pub const must_draw_from_app_thread =
+ @hasDecl(App, "must_draw_from_app_thread") and
+ App.must_draw_from_app_thread;
+
test {
_ = Runtime;
_ = runtime;