mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-28 02:55:05 +00:00
hyprland/ipc: fix nullptr workspace read in log line
This commit is contained in:
1 file changed
+2
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user