src/solaris/classes/sun/awt/X11/XDnDDropTargetProtocol.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 1003,1012 **** --- 1003,1013 ---- } xclient.set_data(1, data1); } } + @SuppressWarnings("static") private void notifyProtocolListener(XWindow xwindow, int x, int y, int dropAction, XClientMessageEvent xclient, int eventID) { long nativeCtxt = 0;
*** 1145,1155 **** /* Make a copy of the original event, since we are going to modify the event while it still can be referenced from other Java events. */ { XClientMessageEvent copy = new XClientMessageEvent(); ! unsafe.copyMemory(xclient.pData, copy.pData, copy.getSize()); copy.set_data(0, xclient.get_window()); forwardClientMessageToToplevel(embedded, copy); } --- 1146,1156 ---- /* Make a copy of the original event, since we are going to modify the event while it still can be referenced from other Java events. */ { XClientMessageEvent copy = new XClientMessageEvent(); ! unsafe.copyMemory(xclient.pData, copy.pData, XClientMessageEvent.getSize()); copy.set_data(0, xclient.get_window()); forwardClientMessageToToplevel(embedded, copy); }