5 # define _WIN32_WINNT 0x0601 /* needed to get definition of MAPVK_VK_TO_VSC */
8 #ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE
9 /* Work around an -Wstrict-prototypes warning in GTK headers */
10 #pragma GCC diagnostic push
11 #pragma GCC diagnostic ignored "-Wstrict-prototypes"
14 #ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE
15 #pragma GCC diagnostic pop
18 #include <gdk/gdkkeysyms.h>
20 #ifdef GDK_WINDOWING_X11
22 #include <X11/XKBlib.h>
25 /* Compatibility define to let us build on both Gtk2 and Gtk3 */
26 #if GTK_CHECK_VERSION(3, 0, 0)
27 static inline void gdk_drawable_get_size(GdkWindow *w, gint *ww, gint *wh)
29 *ww = gdk_window_get_width(w);
30 *wh = gdk_window_get_height(w);
34 typedef struct GtkDisplayState GtkDisplayState;
36 typedef struct VirtualGfxConsole {
37 GtkWidget *drawing_area;
38 DisplayChangeListener dcl;
40 pixman_image_t *convert;
41 cairo_surface_t *surface;
46 #if defined(CONFIG_VTE)
47 typedef struct VirtualVteConsole {
55 typedef enum VirtualConsoleType {
60 typedef struct VirtualConsole {
67 VirtualConsoleType type;
69 VirtualGfxConsole gfx;
70 #if defined(CONFIG_VTE)
71 VirtualVteConsole vte;