aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-11-01 13:18:46 -0400
committerGitHub <noreply@github.com>2017-11-01 13:18:46 -0400
commit1d0973f6c86ac62f03cbec89ceee5211c21dbab1 (patch)
treef58819165915678d3b1f1a009772019d6c754d85
parent0d9d670dbdb62ebf78346119b588a9043d876f7e (diff)
parent0df7a3c22d3d6c2bc8969f1c4e4d10e2aa148325 (diff)
Merge pull request #374 from emersion/set-cursor-event-serial
Add wlr_seat_pointer_request_set_cursor_event.serial
-rw-r--r--include/wlr/types/wlr_seat.h1
-rw-r--r--types/wlr_seat.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_seat.h b/include/wlr/types/wlr_seat.h
index b1872a3d..b8b467d2 100644
--- a/include/wlr/types/wlr_seat.h
+++ b/include/wlr/types/wlr_seat.h
@@ -142,6 +142,7 @@ struct wlr_seat {
struct wlr_seat_pointer_request_set_cursor_event {
struct wlr_seat_client *seat_client;
struct wlr_surface *surface;
+ uint32_t serial;
int32_t hotspot_x, hotspot_y;
};
diff --git a/types/wlr_seat.c b/types/wlr_seat.c
index 1e01c058..bdea96ac 100644
--- a/types/wlr_seat.c
+++ b/types/wlr_seat.c
@@ -43,6 +43,7 @@ static void wl_pointer_set_cursor(struct wl_client *client,
}
event->seat_client = seat_client;
event->surface = surface;
+ event->serial = serial;
event->hotspot_x = hotspot_x;
event->hotspot_y = hotspot_y;