mirror of
https://github.com/glfw/glfw.git
synced 2026-09-20 08:23:13 +00:00
Wayland: Simplify pointer surface state
Track which surface contains the pointer with one piece of state instead of three partially overlapping ones.
This commit is contained in:
+1
-3
@@ -360,7 +360,6 @@ typedef struct _GLFWwindowWayland
|
||||
GLFWbool maximized;
|
||||
GLFWbool activated;
|
||||
GLFWbool fullscreen;
|
||||
GLFWbool hovered;
|
||||
GLFWbool transparent;
|
||||
GLFWbool scaleFramebuffer;
|
||||
struct wl_surface* surface;
|
||||
@@ -416,7 +415,6 @@ typedef struct _GLFWwindowWayland
|
||||
GLFWbool decorations;
|
||||
struct wl_buffer* buffer;
|
||||
_GLFWfallbackEdgeWayland top, left, right, bottom;
|
||||
struct wl_surface* focus;
|
||||
wl_fixed_t pointerX, pointerY;
|
||||
const char* cursorName;
|
||||
} fallback;
|
||||
@@ -457,6 +455,7 @@ typedef struct _GLFWlibraryWayland
|
||||
|
||||
const char* tag;
|
||||
|
||||
struct wl_surface* pointerSurface;
|
||||
struct wl_cursor_theme* cursorTheme;
|
||||
struct wl_cursor_theme* cursorThemeHiDPI;
|
||||
struct wl_surface* cursorSurface;
|
||||
@@ -515,7 +514,6 @@ typedef struct _GLFWlibraryWayland
|
||||
PFN_xkb_compose_state_get_one_sym compose_state_get_one_sym;
|
||||
} xkb;
|
||||
|
||||
_GLFWwindow* pointerFocus;
|
||||
_GLFWwindow* keyboardFocus;
|
||||
|
||||
struct {
|
||||
|
||||
Reference in New Issue
Block a user