Skip to content

Commit c3ed3b0

Browse files
committed
hyprland/ipc: fix nullptr workspace read in log line
1 parent 50026f0 commit c3ed3b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wayland/hyprland/ipc/connection.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,8 @@ void HyprlandIpc::onEvent(HyprlandIpcEvent* event) {
333333
auto* monitor = this->findMonitorByName(name, true);
334334
this->setFocusedMonitor(monitor);
335335
monitor->setActiveWorkspace(workspace);
336-
qCDebug(logHyprlandIpc) << "Monitor" << name << "focused with workspace" << workspace->id();
336+
qCDebug(logHyprlandIpc) << "Monitor" << name << "focused with workspace"
337+
<< (workspace ? workspace->id() : -1);
337338
} else if (event->name == "workspacev2") {
338339
auto args = event->parseView(2);
339340
auto id = args.at(0).toInt();

0 commit comments

Comments
 (0)