forked from quickshell/quickshell
		
	wayland: update QWaylandShellSurface impls to use updateExposure()
For Qt 6.9.0
This commit is contained in:
		
							parent
							
								
									14aa1793df
								
							
						
					
					
						commit
						4ea77a8eb6
					
				
					 2 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
					@ -91,8 +91,10 @@ void QSWaylandSessionLockSurface::ext_session_lock_surface_v1_configure(
 | 
				
			||||||
		this->window()->resizeFromApplyConfigure(this->size);
 | 
							this->window()->resizeFromApplyConfigure(this->size);
 | 
				
			||||||
#if QT_VERSION < QT_VERSION_CHECK(6, 7, 0)
 | 
					#if QT_VERSION < QT_VERSION_CHECK(6, 7, 0)
 | 
				
			||||||
		this->window()->handleExpose(QRect(QPoint(), this->size));
 | 
							this->window()->handleExpose(QRect(QPoint(), this->size));
 | 
				
			||||||
#else
 | 
					#elif QT_VERSION < QT_VERSION_CHECK(6, 9, 0)
 | 
				
			||||||
		this->window()->sendRecursiveExposeEvent();
 | 
							this->window()->sendRecursiveExposeEvent();
 | 
				
			||||||
 | 
					#else
 | 
				
			||||||
 | 
							this->window()->updateExposure();
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
		if (this->visible) this->initVisible();
 | 
							if (this->visible) this->initVisible();
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -135,8 +135,10 @@ void QSWaylandLayerSurface::zwlr_layer_surface_v1_configure(
 | 
				
			||||||
		this->window()->resizeFromApplyConfigure(this->size);
 | 
							this->window()->resizeFromApplyConfigure(this->size);
 | 
				
			||||||
#if QT_VERSION < QT_VERSION_CHECK(6, 7, 0)
 | 
					#if QT_VERSION < QT_VERSION_CHECK(6, 7, 0)
 | 
				
			||||||
		this->window()->handleExpose(QRect(QPoint(), this->size));
 | 
							this->window()->handleExpose(QRect(QPoint(), this->size));
 | 
				
			||||||
#else
 | 
					#elif QT_VERSION < QT_VERSION_CHECK(6, 9, 0)
 | 
				
			||||||
		this->window()->sendRecursiveExposeEvent();
 | 
							this->window()->sendRecursiveExposeEvent();
 | 
				
			||||||
 | 
					#else
 | 
				
			||||||
 | 
							this->window()->updateExposure();
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		this->window()->applyConfigureWhenPossible();
 | 
							this->window()->applyConfigureWhenPossible();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue