mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
refactor(gtk4-layer-shell): Rename isSupported() to isProtocolSupported()
- Rename isSupported() to isProtocolSupported() within package gtk4-layer-shell.
This commit is contained in:
@ -23,7 +23,7 @@ pub const KeyboardMode = enum(c_uint) {
|
||||
on_demand = c.GTK_LAYER_SHELL_KEYBOARD_MODE_ON_DEMAND,
|
||||
};
|
||||
|
||||
pub fn isSupported() bool {
|
||||
pub fn isProtocolSupported() bool {
|
||||
return c.gtk_layer_is_supported() != 0;
|
||||
}
|
||||
|
||||
|
@ -96,7 +96,7 @@ pub const App = struct {
|
||||
}
|
||||
|
||||
pub fn supportsQuickTerminal(_: App) bool {
|
||||
if (!layer_shell.isSupported()) {
|
||||
if (!layer_shell.isProtocolSupported()) {
|
||||
log.warn("your compositor does not support the wlr-layer-shell protocol; disabling quick terminal", .{});
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user