mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-09-05 19:08:17 +00:00
gtk(bell): use gdk.Surface.beep
for bell
Co-authored-by: Jeffrey C. Ollie <jeff@ocjtech.us>
This commit is contained in:
@@ -2441,5 +2441,13 @@ pub fn setSecureInput(self: *Surface, value: apprt.action.SecureInput) void {
|
||||
}
|
||||
|
||||
pub fn ringBell(self: *Surface) !void {
|
||||
const window = self.container.window() orelse {
|
||||
log.warn("failed to ring bell: surface is not attached to any window", .{});
|
||||
return;
|
||||
};
|
||||
|
||||
// System beep
|
||||
if (window.window.as(gtk.Native).getSurface()) |surface| {
|
||||
surface.beep();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user