forked from quickshell/quickshell
		
	wayland/lock: notify on screen change
This commit is contained in:
		
							parent
							
								
									523de78796
								
							
						
					
					
						commit
						d8b72b4c31
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -257,10 +257,10 @@ void WlSessionLockSurface::setScreen(QScreen* qscreen) {
 | 
			
		|||
		QObject::connect(qscreen, &QObject::destroyed, this, &WlSessionLockSurface::onScreenDestroyed);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (this->window == nullptr) {
 | 
			
		||||
		this->mScreen = qscreen;
 | 
			
		||||
	if (this->window == nullptr) this->mScreen = qscreen;
 | 
			
		||||
	else this->window->setScreen(qscreen);
 | 
			
		||||
 | 
			
		||||
	emit this->screenChanged();
 | 
			
		||||
	} else this->window->setScreen(qscreen);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void WlSessionLockSurface::onScreenDestroyed() { this->mScreen = nullptr; }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue