From f1f3318d089f2578fb040402f91d9623f909900f Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Sun, 19 May 2024 02:32:43 -0700 Subject: [PATCH] hyprland/global_shortcuts: fix crash when protocol is not present --- src/wayland/hyprland/global_shortcuts/qml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/hyprland/global_shortcuts/qml.cpp b/src/wayland/hyprland/global_shortcuts/qml.cpp index ff957ea..9442337 100644 --- a/src/wayland/hyprland/global_shortcuts/qml.cpp +++ b/src/wayland/hyprland/global_shortcuts/qml.cpp @@ -25,7 +25,7 @@ void GlobalShortcut::onPostReload() { } auto* manager = GlobalShortcutManager::instance(); - if (manager == nullptr) { + if (!manager->isActive()) { qWarning() << "The active compositor does not support hyprland_global_shortcuts_v1."; qWarning() << "GlobalShortcut will not work."; return;