jdk/src/solaris/native/sun/awt/awt_util.c
changeset 17679 a81555868357
parent 11093 e753252dc8a9
child 21939 5169fd314636
equal deleted inserted replaced
17678:ec24ad8455ec 17679:a81555868357
     1 /*
     1 /*
     2  * Copyright (c) 1995, 2003, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    38 #include <jni_util.h>
    38 #include <jni_util.h>
    39 #include <sys/time.h>
    39 #include <sys/time.h>
    40 
    40 
    41 
    41 
    42 #include "java_awt_event_MouseWheelEvent.h"
    42 #include "java_awt_event_MouseWheelEvent.h"
    43 
       
    44 /*
       
    45  * Since X reports protocol errors asynchronously, we often need to
       
    46  * install an error handler that acts like a callback.  While that
       
    47  * specialized handler is installed we save original handler here.
       
    48  */
       
    49 XErrorHandler xerror_saved_handler;
       
    50 
       
    51 /*
       
    52  * A place for error handler to report the error code.
       
    53  */
       
    54 unsigned char xerror_code;
       
    55 
    43 
    56 extern jint getModifiers(uint32_t state, jint button, jint keyCode);
    44 extern jint getModifiers(uint32_t state, jint button, jint keyCode);
    57 extern jint getButton(uint32_t button);
    45 extern jint getButton(uint32_t button);
    58 
    46 
    59 static Atom OLDecorDelAtom = 0;
    47 static Atom OLDecorDelAtom = 0;