forked from quickshell/quickshell
		
	fix(slock): fix lock target when attempting to enable multiple locks
This commit is contained in:
		
							parent
							
								
									b05d98b56d
								
							
						
					
					
						commit
						a255889e5c
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -46,7 +46,7 @@ void SessionLock::onReload(QObject* oldInstance) {
 | 
			
		|||
	// clang-format on
 | 
			
		||||
 | 
			
		||||
	if (this->lockTarget) {
 | 
			
		||||
		this->manager->lock();
 | 
			
		||||
		if (!this->manager->lock()) this->lockTarget = false;
 | 
			
		||||
		this->updateSurfaces(old);
 | 
			
		||||
	} else {
 | 
			
		||||
		this->setLocked(false);
 | 
			
		||||
| 
						 | 
				
			
			@ -133,7 +133,7 @@ void SessionLock::setLocked(bool locked) {
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	if (locked) {
 | 
			
		||||
		this->manager->lock();
 | 
			
		||||
		if (!this->manager->lock()) this->lockTarget = false;
 | 
			
		||||
		this->updateSurfaces();
 | 
			
		||||
		if (this->lockTarget) emit this->lockStateChanged();
 | 
			
		||||
	} else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue