forked from quickshell/quickshell
		
	hyprland/ipc: fix nullptr workspace read in log line
This commit is contained in:
		
							parent
							
								
									50026f0934
								
							
						
					
					
						commit
						c3ed3b0ee2
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -333,7 +333,8 @@ void HyprlandIpc::onEvent(HyprlandIpcEvent* event) {
 | 
				
			||||||
		auto* monitor = this->findMonitorByName(name, true);
 | 
							auto* monitor = this->findMonitorByName(name, true);
 | 
				
			||||||
		this->setFocusedMonitor(monitor);
 | 
							this->setFocusedMonitor(monitor);
 | 
				
			||||||
		monitor->setActiveWorkspace(workspace);
 | 
							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") {
 | 
						} else if (event->name == "workspacev2") {
 | 
				
			||||||
		auto args = event->parseView(2);
 | 
							auto args = event->parseView(2);
 | 
				
			||||||
		auto id = args.at(0).toInt();
 | 
							auto id = args.at(0).toInt();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue