Add a clarifying log message for INCR clipboard transfers
This commit is contained in:
@@ -43,6 +43,7 @@
|
|||||||
|
|
||||||
static Atom xaPRIMARY, xaCLIPBOARD;
|
static Atom xaPRIMARY, xaCLIPBOARD;
|
||||||
static Atom xaTARGETS, xaTIMESTAMP, xaSTRING, xaTEXT, xaUTF8_STRING;
|
static Atom xaTARGETS, xaTIMESTAMP, xaSTRING, xaTEXT, xaUTF8_STRING;
|
||||||
|
static Atom xaINCR;
|
||||||
static Atom *xaBinclips;
|
static Atom *xaBinclips;
|
||||||
static unsigned xaHtmlIndex, xaPngIndex;
|
static unsigned xaHtmlIndex, xaPngIndex;
|
||||||
static Bool htmlPngPresent;
|
static Bool htmlPngPresent;
|
||||||
@@ -96,6 +97,8 @@ void vncSelectionInit(void)
|
|||||||
xaTEXT = MakeAtom("TEXT", 4, TRUE);
|
xaTEXT = MakeAtom("TEXT", 4, TRUE);
|
||||||
xaUTF8_STRING = MakeAtom("UTF8_STRING", 11, TRUE);
|
xaUTF8_STRING = MakeAtom("UTF8_STRING", 11, TRUE);
|
||||||
|
|
||||||
|
xaINCR = MakeAtom("INCR", 4, TRUE);
|
||||||
|
|
||||||
unsigned i;
|
unsigned i;
|
||||||
mimeIndexesFromClient = calloc(dlp_num_mimetypes(), sizeof(unsigned));
|
mimeIndexesFromClient = calloc(dlp_num_mimetypes(), sizeof(unsigned));
|
||||||
numMimesFromClient = 0;
|
numMimesFromClient = 0;
|
||||||
@@ -582,6 +585,9 @@ static void vncHandleSelection(Atom selection, Atom target,
|
|||||||
if (target != property)
|
if (target != property)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (prop->type == xaINCR)
|
||||||
|
LOG_INFO("Incremental clipboard transfer denied, too large");
|
||||||
|
|
||||||
if (target == xaTARGETS) {
|
if (target == xaTARGETS) {
|
||||||
if (prop->format != 32)
|
if (prop->format != 32)
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user