From c3ed3b0ee2ee7f87707b41e1e4352fb7b9dd4a21 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Fri, 31 Jan 2025 23:28:49 -0800 Subject: [PATCH] hyprland/ipc: fix nullptr workspace read in log line --- src/wayland/hyprland/ipc/connection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wayland/hyprland/ipc/connection.cpp b/src/wayland/hyprland/ipc/connection.cpp index c797b609..36359a0e 100644 --- a/src/wayland/hyprland/ipc/connection.cpp +++ b/src/wayland/hyprland/ipc/connection.cpp @@ -333,7 +333,8 @@ void HyprlandIpc::onEvent(HyprlandIpcEvent* event) { auto* monitor = this->findMonitorByName(name, true); this->setFocusedMonitor(monitor); monitor->setActiveWorkspace(workspace); - qCDebug(logHyprlandIpc) << "Monitor" << name << "focused with workspace" << workspace->id(); + qCDebug(logHyprlandIpc) << "Monitor" << name << "focused with workspace" + << (workspace ? workspace->id() : -1); } else if (event->name == "workspacev2") { auto args = event->parseView(2); auto id = args.at(0).toInt();