forked from AuroraMiddleware/gtk
x11: Fix build without Xinput
Missing ifdefs
This commit is contained in:
parent
63b415df92
commit
b1f2e5bfa3
@ -41,8 +41,12 @@
|
|||||||
|
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <X11/Xutil.h>
|
#include <X11/Xutil.h>
|
||||||
|
#ifdef XINPUT_XFREE
|
||||||
#include <X11/extensions/XInput.h>
|
#include <X11/extensions/XInput.h>
|
||||||
|
#endif
|
||||||
|
#ifdef XINPUT_XI2
|
||||||
#include <X11/extensions/XInput2.h>
|
#include <X11/extensions/XInput2.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <cairo-xlib.h>
|
#include <cairo-xlib.h>
|
||||||
|
|
||||||
@ -225,6 +229,7 @@ void _gdk_x11_device_check_extension_events (GdkDevice *device);
|
|||||||
|
|
||||||
GdkDeviceManager *_gdk_x11_device_manager_new (GdkDisplay *display);
|
GdkDeviceManager *_gdk_x11_device_manager_new (GdkDisplay *display);
|
||||||
|
|
||||||
|
#ifdef XINPUT_XFREE
|
||||||
void _gdk_x11_device_xi_update_window_info (GdkWindow *window);
|
void _gdk_x11_device_xi_update_window_info (GdkWindow *window);
|
||||||
|
|
||||||
void _gdk_x11_device_xi_update_axes (GdkDevice *device,
|
void _gdk_x11_device_xi_update_axes (GdkDevice *device,
|
||||||
@ -237,12 +242,15 @@ void _gdk_x11_device_xi_translate_axes (GdkDevice *device,
|
|||||||
gdouble *axes,
|
gdouble *axes,
|
||||||
gdouble *x,
|
gdouble *x,
|
||||||
gdouble *y);
|
gdouble *y);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef XINPUT_XI2
|
||||||
guchar * _gdk_x11_device_xi2_translate_event_mask (GdkEventMask event_mask,
|
guchar * _gdk_x11_device_xi2_translate_event_mask (GdkEventMask event_mask,
|
||||||
gint *len);
|
gint *len);
|
||||||
guint _gdk_x11_device_xi2_translate_state (XIModifierState *mods_state,
|
guint _gdk_x11_device_xi2_translate_state (XIModifierState *mods_state,
|
||||||
XIButtonState *buttons_state,
|
XIButtonState *buttons_state,
|
||||||
XIGroupState *group_state);
|
XIGroupState *group_state);
|
||||||
|
#endif
|
||||||
|
|
||||||
void _gdk_x11_event_translate_keyboard_string (GdkEventKey *event);
|
void _gdk_x11_event_translate_keyboard_string (GdkEventKey *event);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user