mirror of
				https://github.com/glfw/glfw.git
				synced 2025-11-04 06:15:07 +00:00 
			
		
		
		
	Wayland: Use enum type to store enum value
(cherry picked from commit 80dc0533cf)
			
			
This commit is contained in:
		
							parent
							
								
									aef1d4584f
								
							
						
					
					
						commit
						7b65ecf77c
					
				@ -224,7 +224,7 @@ typedef struct _GLFWwindowWayland
 | 
			
		||||
    struct {
 | 
			
		||||
        struct wl_buffer*                  buffer;
 | 
			
		||||
        _GLFWdecorationWayland             top, left, right, bottom;
 | 
			
		||||
        int                                focus;
 | 
			
		||||
        _GLFWdecorationSideWayland         focus;
 | 
			
		||||
    } decorations;
 | 
			
		||||
} _GLFWwindowWayland;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1019,9 +1019,9 @@ static char* readDataOfferAsString(struct wl_data_offer* offer, const char* mime
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static _GLFWwindow* findWindowFromDecorationSurface(struct wl_surface* surface,
 | 
			
		||||
                                                    int* which)
 | 
			
		||||
                                                    _GLFWdecorationSideWayland* which)
 | 
			
		||||
{
 | 
			
		||||
    int focus;
 | 
			
		||||
    _GLFWdecorationSideWayland focus;
 | 
			
		||||
    _GLFWwindow* window = _glfw.windowListHead;
 | 
			
		||||
    if (!which)
 | 
			
		||||
        which = &focus;
 | 
			
		||||
@ -1063,7 +1063,7 @@ static void pointerHandleEnter(void* userData,
 | 
			
		||||
    if (!surface)
 | 
			
		||||
        return;
 | 
			
		||||
 | 
			
		||||
    int focus = 0;
 | 
			
		||||
    _GLFWdecorationSideWayland focus = mainWindow;
 | 
			
		||||
    _GLFWwindow* window = wl_surface_get_user_data(surface);
 | 
			
		||||
    if (!window)
 | 
			
		||||
    {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user