mirror of
https://github.com/glfw/glfw
synced 2026-09-26 16:18:21 +03:00
Wayland: Remove unused struct member
The libdecor initialization sync callback was saved in the library struct but never meaningfully used.
This commit is contained in:
parent
1929088dd9
commit
55fd451d5f
2 changed files with 3 additions and 9 deletions
|
|
@ -244,10 +244,7 @@ static void libdecorReadyCallback(void* userData,
|
|||
uint32_t time)
|
||||
{
|
||||
_glfw.wl.libdecor.ready = GLFW_TRUE;
|
||||
|
||||
assert(_glfw.wl.libdecor.callback == callback);
|
||||
wl_callback_destroy(_glfw.wl.libdecor.callback);
|
||||
_glfw.wl.libdecor.callback = NULL;
|
||||
wl_callback_destroy(callback);
|
||||
}
|
||||
|
||||
static const struct wl_callback_listener libdecorReadyListener =
|
||||
|
|
@ -881,10 +878,8 @@ int _glfwInitWayland(void)
|
|||
libdecor_dispatch(_glfw.wl.libdecor.context, 0);
|
||||
|
||||
// Create sync point to "know" when libdecor is ready for use
|
||||
_glfw.wl.libdecor.callback = wl_display_sync(_glfw.wl.display);
|
||||
wl_callback_add_listener(_glfw.wl.libdecor.callback,
|
||||
&libdecorReadyListener,
|
||||
NULL);
|
||||
struct wl_callback* callback = wl_display_sync(_glfw.wl.display);
|
||||
wl_callback_add_listener(callback, &libdecorReadyListener, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -595,7 +595,6 @@ typedef struct _GLFWlibraryWayland
|
|||
struct {
|
||||
void* handle;
|
||||
struct libdecor* context;
|
||||
struct wl_callback* callback;
|
||||
GLFWbool ready;
|
||||
PFN_libdecor_new libdecor_new_;
|
||||
PFN_libdecor_unref libdecor_unref_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue