From 011abc8ac652b114f03917bc2bf552475ebcb75e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Fri, 13 Apr 2012 11:02:21 -0400 Subject: [PATCH] xserver-launcher: Pass serial to wl_input_device_set_selection() --- src/xserver-launcher.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/xserver-launcher.c b/src/xserver-launcher.c index 2e4d7262..c5ca326a 100644 --- a/src/xserver-launcher.c +++ b/src/xserver-launcher.c @@ -293,7 +293,7 @@ static void weston_wm_get_selection_targets(struct weston_wm *wm) { struct wl_data_source *source; - struct wl_input_device *device; + struct weston_compositor *compositor; xcb_get_property_cookie_t cookie; xcb_get_property_reply_t *reply; xcb_atom_t *value; @@ -336,8 +336,9 @@ weston_wm_get_selection_targets(struct weston_wm *wm) } } - device = wm->server->compositor->input_device; - wl_input_device_set_selection(device, source); + compositor = wm->server->compositor; + wl_input_device_set_selection(compositor->input_device, source, + wl_display_next_serial(compositor->wl_display)); free(reply); }