forked from quickshell/quickshell
		
	fix(slock): protocol error when session lock is reconfigured
This commit is contained in:
		
							parent
							
								
									0b529c6682
								
							
						
					
					
						commit
						b05d98b56d
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -94,7 +94,8 @@ void QSWaylandSessionLockSurface::ext_session_lock_surface_v1_configure(
 | 
				
			||||||
		this->window()->handleExpose(QRect(QPoint(), this->size));
 | 
							this->window()->handleExpose(QRect(QPoint(), this->size));
 | 
				
			||||||
		if (this->visible) this->initVisible();
 | 
							if (this->visible) this->initVisible();
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		this->window()->applyConfigureWhenPossible();
 | 
							// applyConfigureWhenPossible runs too late and causes a protocol error on reconfigure.
 | 
				
			||||||
 | 
							this->window()->resizeFromApplyConfigure(this->size);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue