forked from quickshell/quickshell
		
	wayland/lock: handle null window in configure()
Has caused a crash.
This commit is contained in:
		
							parent
							
								
									07ea4de248
								
							
						
					
					
						commit
						5703fbae21
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -81,6 +81,8 @@ void QSWaylandSessionLockSurface::ext_session_lock_surface_v1_configure(
 | 
				
			||||||
    quint32 width,
 | 
					    quint32 width,
 | 
				
			||||||
    quint32 height
 | 
					    quint32 height
 | 
				
			||||||
) {
 | 
					) {
 | 
				
			||||||
 | 
						if (!this->window()) return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	this->ack_configure(serial);
 | 
						this->ack_configure(serial);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	this->size = QSize(static_cast<qint32>(width), static_cast<qint32>(height));
 | 
						this->size = QSize(static_cast<qint32>(width), static_cast<qint32>(height));
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue