mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 00:30:57 +00:00
Wayland: Clean up listener struct initialization
Adapt style to match the rest of the project.
(cherry picked from commit 0f38382e25)
This commit is contained in:
+4
-2
@@ -48,7 +48,8 @@ static void wmBaseHandlePing(void* userData,
|
||||
xdg_wm_base_pong(wmBase, serial);
|
||||
}
|
||||
|
||||
static const struct xdg_wm_base_listener wmBaseListener = {
|
||||
static const struct xdg_wm_base_listener wmBaseListener =
|
||||
{
|
||||
wmBaseHandlePing
|
||||
};
|
||||
|
||||
@@ -164,7 +165,8 @@ static void registryHandleGlobalRemove(void* userData,
|
||||
}
|
||||
|
||||
|
||||
static const struct wl_registry_listener registryListener = {
|
||||
static const struct wl_registry_listener registryListener =
|
||||
{
|
||||
registryHandleGlobal,
|
||||
registryHandleGlobalRemove
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user