wlr_surface: fix argument order consistency

This swaps the argument order of wlr_surface_accepts_touch() and
wlr_surface_accepts_tablet_v2(), putting the wlr_surface argument first
as should be the case for functions namespaced with wlr_surface_*.
This commit is contained in:
Isaac Freund 2020-10-15 15:11:52 +02:00 committed by Simon Zeni
parent b10516e1e8
commit 5ecbd23c1d
4 changed files with 6 additions and 6 deletions

View file

@ -476,7 +476,7 @@ bool wlr_seat_validate_touch_grab_serial(struct wlr_seat *seat,
return false;
}
bool wlr_surface_accepts_touch(struct wlr_seat *wlr_seat, struct wlr_surface *surface) {
bool wlr_surface_accepts_touch(struct wlr_surface *surface, struct wlr_seat *wlr_seat) {
struct wl_client *client = wl_resource_get_client(surface->resource);
struct wlr_seat_client *seat_client = wlr_seat_client_for_wl_client(wlr_seat, client);
if (!seat_client) {

View file

@ -560,8 +560,8 @@ uint32_t wlr_send_tablet_v2_tablet_pad_mode(struct wlr_tablet_v2_tablet_pad *pad
return serial;
}
bool wlr_surface_accepts_tablet_v2(struct wlr_tablet_v2_tablet *tablet,
struct wlr_surface *surface) {
bool wlr_surface_accepts_tablet_v2(struct wlr_surface *surface,
struct wlr_tablet_v2_tablet *tablet) {
struct wl_client *client = wl_resource_get_client(surface->resource);
if (tablet->current_client &&