14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25 #include <X11/Xlib.h>
26 #include <X11/Xatom.h>
27 #include <gdk/gdk.h>
28 #include <gdk/gdkx.h>
29 #include <gtk/gtk.h>
30 #include <glib.h>
31
32 #include <cstdlib>
33 #include <iostream>
34 #include <com_sun_glass_ui_Application.h>
35 #include <com_sun_glass_ui_gtk_GtkApplication.h>
36 #include <com_sun_glass_events_WindowEvent.h>
37 #include <com_sun_glass_events_MouseEvent.h>
38 #include <com_sun_glass_events_ViewEvent.h>
39 #include <com_sun_glass_events_KeyEvent.h>
40 #include <jni.h>
41
42 #include "glass_general.h"
43 #include "glass_evloop.h"
44 #include "glass_dnd.h"
45 #include "glass_window.h"
46 #include "glass_screen.h"
47
48 GdkEventFunc process_events_prev;
49 static void process_events(GdkEvent*, gpointer);
50
51 JNIEnv* mainEnv; // Use only with main loop thread!!!
52
53 extern gboolean disableGrab;
54
|
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25 #include <X11/Xlib.h>
26 #include <X11/Xatom.h>
27 #include <gdk/gdk.h>
28 #include <gdk/gdkx.h>
29 #include <gtk/gtk.h>
30 #include <glib.h>
31
32 #include <cstdlib>
33 #include <iostream>
34 #include <com_sun_glass_ui_gtk_GtkApplication.h>
35 #include <com_sun_glass_events_WindowEvent.h>
36 #include <com_sun_glass_events_MouseEvent.h>
37 #include <com_sun_glass_events_ViewEvent.h>
38 #include <com_sun_glass_events_KeyEvent.h>
39 #include <jni.h>
40
41 #include "glass_general.h"
42 #include "glass_evloop.h"
43 #include "glass_dnd.h"
44 #include "glass_window.h"
45 #include "glass_screen.h"
46
47 GdkEventFunc process_events_prev;
48 static void process_events(GdkEvent*, gpointer);
49
50 JNIEnv* mainEnv; // Use only with main loop thread!!!
51
52 extern gboolean disableGrab;
53
|