Skip to content

Commit

Permalink
compiler fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Winarske <[email protected]>
  • Loading branch information
jwinarske committed Jan 17, 2025
1 parent 003d5e2 commit 918278e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions shell/wayland/display.cc
Original file line number Diff line number Diff line change
Expand Up @@ -767,8 +767,12 @@ constexpr wl_touch_listener Display::touch_listener = {
.motion = touch_handle_motion,
.frame = touch_handle_frame,
.cancel = touch_handle_cancel,
#if defined(WL_TOUCH_SHAPE_SINCE_VERSION)
.shape = nullptr,
#endif
#if defined(WL_TOUCH_ORIENTATION_SINCE_VERSION)
.orientation = nullptr,
#endif
};

int Display::PollEvents() const {
Expand Down
6 changes: 6 additions & 0 deletions shell/wayland/window.cc
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,12 @@ void WaylandWindow::handle_base_surface_leave(void* /* data */,
const struct wl_surface_listener WaylandWindow::m_base_surface_listener = {
.enter = handle_base_surface_enter,
.leave = handle_base_surface_leave,
#if WL_SURFACE_PREFERRED_BUFFER_SCALE_SINCE_VERSION
.preferred_buffer_scale = nullptr,
#endif
#if WL_SURFACE_PREFERRED_BUFFER_TRANSFORM_SINCE_VERSION
.preferred_buffer_transform = nullptr,
#endif
};

#if ENABLE_XDG_CLIENT
Expand Down
2 changes: 1 addition & 1 deletion third_party/waypp

0 comments on commit 918278e

Please sign in to comment.