mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
wayland: Use standard SINCE version definitions
This commit is contained in:
parent
549df04ed8
commit
91f35d6a01
@ -142,12 +142,12 @@ bind_output (struct wl_client *client,
|
||||
(int)output->crtc->current_mode->refresh_rate);
|
||||
|
||||
output->scale = compute_scale (output);
|
||||
if (version >= META_WL_OUTPUT_HAS_SCALE)
|
||||
if (version >= WL_OUTPUT_SCALE_SINCE_VERSION)
|
||||
wl_resource_post_event (resource,
|
||||
WL_OUTPUT_SCALE,
|
||||
output->scale);
|
||||
|
||||
if (version >= META_WL_OUTPUT_HAS_DONE)
|
||||
if (version >= WL_OUTPUT_DONE_SINCE_VERSION)
|
||||
wl_resource_post_event (resource,
|
||||
WL_OUTPUT_DONE);
|
||||
}
|
||||
|
@ -86,7 +86,7 @@ bind_seat (struct wl_client *client,
|
||||
WL_SEAT_CAPABILITY_POINTER |
|
||||
WL_SEAT_CAPABILITY_KEYBOARD);
|
||||
|
||||
if (version >= META_WL_SEAT_HAS_NAME)
|
||||
if (version >= WL_SEAT_NAME_SINCE_VERSION)
|
||||
wl_seat_send_name (resource, "seat0");
|
||||
}
|
||||
|
||||
|
@ -59,9 +59,4 @@
|
||||
#define META_GTK_SURFACE_VERSION 1 /* from gtk_shell */
|
||||
#define META_WL_SUBSURFACE_VERSION 1 /* from wl_subcompositor */
|
||||
|
||||
/* The first version to implement a specific event */
|
||||
#define META_WL_SEAT_HAS_NAME 2
|
||||
#define META_WL_OUTPUT_HAS_SCALE 2
|
||||
#define META_WL_OUTPUT_HAS_DONE 2
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user