diff --git a/src/wayland/hyprland/ipc/connection.cpp b/src/wayland/hyprland/ipc/connection.cpp index c797b60..36359a0 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();