summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-06-02 21:21:41 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-06-02 21:21:41 -0400
commitfee91be58668595cd908c77739282d8731053b4e (patch)
tree4f5d929d7c6a3522cb4a6c7de23d9ad3e77a713a
parentb7452fe3138240ec78e3b4b670aec04f99d4b589 (diff)
terminal: Use serial, not timestamp for setting the selection
-rw-r--r--clients/terminal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/clients/terminal.c b/clients/terminal.c
index 319f9c8..4308875 100644
--- a/clients/terminal.c
+++ b/clients/terminal.c
@@ -2064,7 +2064,8 @@ handle_bound_key(struct terminal *terminal,
"text/plain;charset=utf-8");
wl_data_source_add_listener(terminal->selection,
&data_source_listener, terminal);
- input_set_selection(input, terminal->selection, time);
+ input_set_selection(input, terminal->selection,
+ display_get_serial(terminal->display));
return 1;
case XKB_KEY_V:
input_receive_selection_data_to_fd(input,