Eh, allow to build with the latest wlroots git, so as not to cause GitHub's build to fail

This commit is contained in:
Keith Bowes 2022-02-02 20:50:58 -05:00
parent 4c96f5eada
commit 0b14c71dbb
2 changed files with 2 additions and 4 deletions

View file

@ -23,10 +23,8 @@ cc = meson.get_compiler('c')
# Adding include directory
inc_dir = include_directories('include')
# Due to the planned refactor of xdg_shell in wlroots 0.16.0, I doubt this will
# build when it's released
libxml2 = dependency('libxml-2.0')
wlroots = dependency('wlroots', version: ['>=0.15.0', '<0.16.0'])
wlroots = dependency('wlroots', version: '>=0.15.0')
wayland_server = dependency('wayland-server', version: '>=1.15')
wayland_protos = dependency('wayland-protocols', version: '>=1.17')
xkbcommon = dependency('xkbcommon')

View file

@ -116,7 +116,7 @@ static void handle_cursor_button(struct wl_listener *listener, void *data) {
wlr_seat_pointer_notify_button(cursor->server->seat->seat,
event->time_msec, event->button, event->state);
double sx, sy;
struct wlr_surface *surface;
struct wlr_surface *surface = NULL;
struct wb_view *view = desktop_view_at(cursor->server,
cursor->server->cursor->cursor->x, cursor->server->cursor->cursor->y, &surface, &sx, &sy);
if (event->state == WLR_BUTTON_RELEASED) {