[vlc-commits] [Git][videolan/vlc][master] 2 commits: wayland: input: init axis_value120 to NULL
Steve Lhomme (@robUx4)
gitlab at videolan.org
Tue Aug 30 11:52:19 UTC 2022
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
19bd8d27 by Alexandre Janniaux at 2022-08-30T11:31:42+00:00
wayland: input: init axis_value120 to NULL
Fixes a missing initializer warning for axis_value120. We currently
enforce version = 5 for the wl_seat version, and it's available starting
with wl_pointer version 8, which means that we don't need to set a
function handler for now.
- - - - -
c6975859 by Alexandre Janniaux at 2022-08-30T11:31:42+00:00
wayland: xdg-shell: init wm_capabilities to NULL
It's available starting with xdg-toplevel version 5, and we use
xdg-wm-base version 1 or the version adding configure_bounds which is
version 4, so we don't need to set a handler for now.
- - - - -
2 changed files:
- modules/video_output/wayland/input.c
- modules/video_output/wayland/xdg-shell.c
Changes:
=====================================
modules/video_output/wayland/input.c
=====================================
@@ -206,6 +206,9 @@ static const struct wl_pointer_listener pointer_cbs =
pointer_axis_source,
pointer_axis_stop,
pointer_axis_discrete,
+#ifdef WL_POINTER_AXIS_VALUE120_SINCE_VERSION
+ NULL, /* We don't support axis_value120 for now */
+#endif
};
static void pointer_create(struct seat_data *sd)
=====================================
modules/video_output/wayland/xdg-shell.c
=====================================
@@ -363,6 +363,9 @@ static const struct xdg_toplevel_listener xdg_toplevel_cbs =
#ifdef XDG_TOPLEVEL_CONFIGURE_BOUNDS_SINCE_VERSION
xdg_toplevel_configure_bounds_cb,
#endif
+#ifdef XDG_TOPLEVEL_WM_CAPABILITIES_SINCE_VERSION
+ NULL, /* We don't support wm_capabilities for now */
+#endif
};
static void xdg_surface_configure_cb(void *data, struct xdg_surface *surface,
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/d143d2654a4ba56fd73919532bae1cc6e265baf1...c6975859435aeefe24a0bd86f599ae857dbba0dc
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/d143d2654a4ba56fd73919532bae1cc6e265baf1...c6975859435aeefe24a0bd86f599ae857dbba0dc
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list