[client] x11: reject null clipboard payloads

This commit is contained in:
Geoffrey McRae
2026-08-12 04:54:57 +10:00
parent 1c7664dc5c
commit 9cbf24690b

View File

@@ -582,7 +582,7 @@ static void x11CBSelectionNotify(const XSelectionEvent e)
const LG_ClipboardRequest request = x11cb.read.request;
const bool valid = dataType != LG_CLIPBOARD_DATA_NONE &&
dataType == x11cb.read.type && format == 8;
dataType == x11cb.read.type && format == 8 && (!itemCount || data);
cancelReadNL();
LG_UNLOCK(x11cb.lock);