8211810: X11 Time stamp data should be unsigned

Reviewed-by: serb
This commit is contained in:
Ichiroh Takiguchi 2018-10-30 15:51:10 -07:00
parent 033a0df6ef
commit 812a004bc9
2 changed files with 3 additions and 3 deletions

View File

@ -620,7 +620,7 @@ class XDnDDropTargetProtocol extends XDropTargetProtocol {
/* Time stamp - new in XDnD version 1. */
if (sourceProtocolVersion > 0) {
time_stamp = xclient.get_data(3);
time_stamp = xclient.get_data(3) & 0xFFFFFFFFL;
}
/* User action - new in XDnD version 2. */
@ -867,7 +867,7 @@ class XDnDDropTargetProtocol extends XDropTargetProtocol {
*/
if (dropAction == DnDConstants.ACTION_MOVE && success) {
long time_stamp = xclient.get_data(2);
long time_stamp = xclient.get_data(2) & 0xFFFFFFFFL;
long xdndSelectionAtom =
XDnDConstants.XDnDSelection.getSelectionAtom().getAtom();

View File

@ -200,7 +200,7 @@ public class XMSelection {
if (log.isLoggable(PlatformLogger.Level.FINE)) {
log.fine("client messags = " + xce);
}
long timestamp = xce.get_data(0);
long timestamp = xce.get_data(0) & 0xFFFFFFFFL;
long atom = xce.get_data(1);
long owner = xce.get_data(2);
long data = xce.get_data(3);