mirror of
				https://github.com/glfw/glfw.git
				synced 2025-11-03 22:04:15 +00:00 
			
		
		
		
	Wayland: Simplify test for fallback decorations
The GLFW fallback decorations only exist when the window is visible, decorated and in windowed mode.
This commit is contained in:
		
							parent
							
								
									82e77dbff4
								
							
						
					
					
						commit
						228428fa4f
					
				@ -2006,7 +2006,7 @@ void _glfwGetWindowFrameSizeWayland(_GLFWwindow* window,
 | 
			
		||||
                                    int* left, int* top,
 | 
			
		||||
                                    int* right, int* bottom)
 | 
			
		||||
{
 | 
			
		||||
    if (window->decorated && !window->monitor && window->wl.decorations.top.surface)
 | 
			
		||||
    if (window->wl.decorations.top.surface)
 | 
			
		||||
    {
 | 
			
		||||
        if (top)
 | 
			
		||||
            *top = GLFW_CAPTION_HEIGHT;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user