mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-22 15:11:31 +00:00
[client] x11: reject null clipboard payloads
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user