Skip to content

Unused Ghostty FFI functions that could improve behavior #12

Description

@mvbmir

Summary

Several Ghostty FFI functions are declared in limux-ghostty-sys/src/lib.rs but never called. Some could improve limux behavior.

Unused FFI Functions

Function Potential Use
ghostty_app_free Proper cleanup on app exit (currently leaks)
ghostty_app_set_focus Explicitly tell Ghostty when the app gains/loses focus (may fix edge cases with unfocused terminals still processing input)
ghostty_surface_refresh Force a surface redraw without waiting for the next render cycle
ghostty_surface_request_close Clean surface shutdown instead of just dropping the widget
ghostty_surface_size Query actual surface dimensions (useful for control bridge introspection)

Priority

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions