Skip to content

Commit 9b62d17

Browse files
Refactor wayland code the second
1 parent 1861d55 commit 9b62d17

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/detection/displayserver/wayland.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ bool detectWayland(const FFinstance* instance, FFDisplayServerResult* result)
100100

101101
waylandDetectWM(ffwl_display_get_fd(display), result);
102102

103-
struct wl_registry* registry = (struct wl_registry*) ffwl_proxy_marshal_constructor((struct wl_proxy*) display, WL_DISPLAY_GET_REGISTRY, ffwl_registry_interface, NULL);
103+
struct wl_proxy* registry = ffwl_proxy_marshal_constructor((struct wl_proxy*) display, WL_DISPLAY_GET_REGISTRY, ffwl_registry_interface, NULL);
104104
if(registry == NULL)
105105
{
106106
ffwl_display_disconnect(display);
@@ -110,19 +110,19 @@ bool detectWayland(const FFinstance* instance, FFDisplayServerResult* result)
110110

111111
data.results = &result->resolutions;
112112

113-
struct wl_registry_listener regestry_listener = {
113+
struct wl_registry_listener registry_listener = {
114114
.global = waylandGlobalAddListener
115115
};
116116

117117
data.output_listener = (struct wl_output_listener) {
118118
.mode = waylandOutputModeListener
119119
};
120120

121-
data.ffwl_proxy_add_listener((struct wl_proxy*) registry, (void(**)(void)) &regestry_listener, &data);
121+
data.ffwl_proxy_add_listener(registry, (void(**)(void)) &registry_listener, &data);
122122
ffwl_display_dispatch(display);
123123
ffwl_display_roundtrip(display);
124124

125-
data.ffwl_proxy_destroy((struct wl_proxy*) registry);
125+
data.ffwl_proxy_destroy(registry);
126126
ffwl_display_disconnect(display);
127127
dlclose(wayland);
128128

0 commit comments

Comments
 (0)