From d700e19a3267d83a83b1aea77b8cec05ab923664 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 3 Dec 2020 02:35:40 +1100 Subject: [PATCH] [client] clipboard: correctly alert for large buffers --- client/clipboards/X11/src/x11.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/clipboards/X11/src/x11.c b/client/clipboards/X11/src/x11.c index f02dbd31..a573aa18 100644 --- a/client/clipboards/X11/src/x11.c +++ b/client/clipboards/X11/src/x11.c @@ -248,9 +248,10 @@ static void x11_cb_selection_notify(const XSelectionEvent e) &after, &data); - if (format == this->aIncr) + if (type == this->aIncr) { DEBUG_WARN("fixme: large paste buffers are not yet supported"); + this->notifyFn(LG_CLIPBOARD_DATA_NONE); goto out; }