aboutsummaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-10-27 17:43:07 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-10-27 17:43:07 +0000
commit9f0b1f94c284e76ff1579e7f34f4a7418ef98b02 (patch)
treed9ac666de7624b6960bb590159a9d08c68fa2761 /selection.c
parentwayland: add back-pointer to terminal (diff)
wayland: change all wayland callbacks to take a wayland pointer
Instead of passing the terminal to the wayland callbacks, pass a 'struct wayland' pointer.
Diffstat (limited to 'selection.c')
-rw-r--r--selection.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/selection.c b/selection.c
index 33875e94..a3c88307 100644
--- a/selection.c
+++ b/selection.c
@@ -742,8 +742,8 @@ selection(void *data, struct wl_data_device *wl_data_device,
{
/* Selection offer from other client */
- struct terminal *term = data;
- struct wl_clipboard *clipboard = &term->wl.clipboard;
+ struct wayland *wayl = data;
+ struct wl_clipboard *clipboard = &wayl->clipboard;
if (clipboard->data_offer != NULL)
wl_data_offer_destroy(clipboard->data_offer);
@@ -791,8 +791,8 @@ primary_selection(void *data,
{
/* Selection offer from other client, for primary */
- struct terminal *term = data;
- struct wl_primary *primary = &term->wl.primary;
+ struct wayland *wayl = data;
+ struct wl_primary *primary = &wayl->primary;
if (primary->data_offer != NULL)
zwp_primary_selection_offer_v1_destroy(primary->data_offer);