Import Tk 8.6.8
This commit is contained in:
@@ -190,8 +190,8 @@ Tk_CreateSelHandler(
|
||||
* should make a copy for this selPtr.
|
||||
*/
|
||||
|
||||
unsigned cmdInfoLen = Tk_Offset(CommandInfo, command) +
|
||||
((CommandInfo *)clientData)->cmdLength + 1;
|
||||
unsigned cmdInfoLen = Tk_Offset(CommandInfo, command) + 1 +
|
||||
((CommandInfo *)clientData)->cmdLength;
|
||||
|
||||
selPtr->clientData = ckalloc(cmdInfoLen);
|
||||
memcpy(selPtr->clientData, clientData, cmdInfoLen);
|
||||
@@ -1185,6 +1185,7 @@ TkSelInit(
|
||||
dispPtr->applicationAtom = Tk_InternAtom(tkwin, "TK_APPLICATION");
|
||||
dispPtr->windowAtom = Tk_InternAtom(tkwin, "TK_WINDOW");
|
||||
dispPtr->clipboardAtom = Tk_InternAtom(tkwin, "CLIPBOARD");
|
||||
dispPtr->atomPairAtom = Tk_InternAtom(tkwin, "ATOM_PAIR");
|
||||
|
||||
/*
|
||||
* Using UTF8_STRING instead of the XA_UTF8_STRING macro allows us to
|
||||
|
||||
Reference in New Issue
Block a user