Skip to content

Commit

Permalink
hyprland/ipc: fix nullptr workspace read in log line
Browse files Browse the repository at this point in the history
  • Loading branch information
outfoxxed committed Feb 1, 2025
1 parent 50026f0 commit c3ed3b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wayland/hyprland/ipc/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c3ed3b0

Please sign in to comment.