refactor(gtk4-layer-shell): Rename isSupported() to isProtocolSupported()

-  Rename isSupported() to isProtocolSupported() within package
   gtk4-layer-shell.
This commit is contained in:
azhn
2025-04-22 00:58:03 +10:00
parent 206d41844e
commit e74c83f676
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}