Skip to content

Commit

Permalink
wayland: remove reset_cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
Dudemanguy committed Feb 28, 2019
1 parent 6740fb0 commit 479c4f6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions video/out/wayland_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,6 @@ static int set_cursor_visibility(struct vo_wayland_state *wl, bool on)
return VO_TRUE;
}

static void reset_cursor(struct vo_wayland_state *wl)
{
set_cursor_visibility(wl, wl->cursor_visible);
}

static void pointer_handle_enter(void *data, struct wl_pointer *pointer,
uint32_t serial, struct wl_surface *surface,
wl_fixed_t sx, wl_fixed_t sy)
Expand All @@ -106,7 +101,7 @@ static void pointer_handle_enter(void *data, struct wl_pointer *pointer,
wl->pointer = pointer;
wl->pointer_id = serial;

reset_cursor(wl);
set_cursor_visibility(wl, wl->cursor_visible);
mp_input_put_key(wl->vo->input_ctx, MP_KEY_MOUSE_ENTER);
}

Expand Down

0 comments on commit 479c4f6

Please sign in to comment.