Wait for interface announce before xdg-decoration check
This commit is contained in:
		
							parent
							
								
									01f07480b0
								
							
						
					
					
						commit
						d1bf069916
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -18,8 +18,11 @@ std::unique_ptr<BasicWindowHelper> CreateSpecialWindowHelper( | ||||||
| 
 | 
 | ||||||
| bool NativeWindowFrameSupported() { | bool NativeWindowFrameSupported() { | ||||||
| 	const auto waylandIntegration = WaylandIntegration::Instance(); | 	const auto waylandIntegration = WaylandIntegration::Instance(); | ||||||
| 	return !waylandIntegration | 	if (waylandIntegration) { | ||||||
| 			|| waylandIntegration->xdgDecorationSupported(); | 		waylandIntegration->waitForInterfaceAnnounce(); | ||||||
|  | 		return waylandIntegration->xdgDecorationSupported(); | ||||||
|  | 	} | ||||||
|  | 	return true; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| } // namespace Platform
 | } // namespace Platform
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Ilya Fedin
						Ilya Fedin