forked from AuroraMiddleware/gtk
x11: Stop using _gdk_device_query_state
Directly use the backend implementation.
This commit is contained in:
parent
028644d0ad
commit
7d9bc01797
10
gdk/x11/gdkdevice-xi2-private.h
Normal file
10
gdk/x11/gdkdevice-xi2-private.h
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#ifndef __GDK_DEVICE_XI2_PRIVATE_H__
|
||||||
|
#define __GDK_DEVICE_XI2_PRIVATE_H__
|
||||||
|
|
||||||
|
void gdk_x11_device_xi2_query_state (GdkDevice *device,
|
||||||
|
GdkSurface *surface,
|
||||||
|
GdkSurface **child_surface,
|
||||||
|
double *win_x,
|
||||||
|
double *win_y,
|
||||||
|
GdkModifierType *mask);
|
||||||
|
#endif
|
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
#include "gdkx11device-xi2.h"
|
#include "gdkx11device-xi2.h"
|
||||||
#include "gdkdeviceprivate.h"
|
#include "gdkdeviceprivate.h"
|
||||||
|
#include "gdkdevice-xi2-private.h"
|
||||||
|
|
||||||
#include "gdkintl.h"
|
#include "gdkintl.h"
|
||||||
#include "gdkasync.h"
|
#include "gdkasync.h"
|
||||||
@ -74,12 +75,6 @@ static void gdk_x11_device_xi2_set_property (GObject *object,
|
|||||||
static void gdk_x11_device_xi2_set_surface_cursor (GdkDevice *device,
|
static void gdk_x11_device_xi2_set_surface_cursor (GdkDevice *device,
|
||||||
GdkSurface *surface,
|
GdkSurface *surface,
|
||||||
GdkCursor *cursor);
|
GdkCursor *cursor);
|
||||||
static void gdk_x11_device_xi2_query_state (GdkDevice *device,
|
|
||||||
GdkSurface *surface,
|
|
||||||
GdkSurface **child_surface,
|
|
||||||
double *win_x,
|
|
||||||
double *win_y,
|
|
||||||
GdkModifierType *mask);
|
|
||||||
|
|
||||||
static GdkGrabStatus gdk_x11_device_xi2_grab (GdkDevice *device,
|
static GdkGrabStatus gdk_x11_device_xi2_grab (GdkDevice *device,
|
||||||
GdkSurface *surface,
|
GdkSurface *surface,
|
||||||
@ -205,7 +200,7 @@ gdk_x11_device_xi2_set_surface_cursor (GdkDevice *device,
|
|||||||
GDK_SURFACE_XID (surface));
|
GDK_SURFACE_XID (surface));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
void
|
||||||
gdk_x11_device_xi2_query_state (GdkDevice *device,
|
gdk_x11_device_xi2_query_state (GdkDevice *device,
|
||||||
GdkSurface *surface,
|
GdkSurface *surface,
|
||||||
GdkSurface **child_surface,
|
GdkSurface **child_surface,
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
#include "gdkclipboardprivate.h"
|
#include "gdkclipboardprivate.h"
|
||||||
#include "gdkclipboard-x11.h"
|
#include "gdkclipboard-x11.h"
|
||||||
#include "gdkdeviceprivate.h"
|
#include "gdkdeviceprivate.h"
|
||||||
|
#include "gdkdevice-xi2-private.h"
|
||||||
#include "gdkdisplay-x11.h"
|
#include "gdkdisplay-x11.h"
|
||||||
#include "gdkdragprivate.h"
|
#include "gdkdragprivate.h"
|
||||||
#include "gdksurfaceprivate.h"
|
#include "gdksurfaceprivate.h"
|
||||||
@ -2010,7 +2011,7 @@ _gdk_x11_surface_drag_begin (GdkSurface *surface,
|
|||||||
|
|
||||||
precache_target_list (drag);
|
precache_target_list (drag);
|
||||||
|
|
||||||
_gdk_device_query_state (device, surface, NULL, &px, &py, NULL);
|
gdk_x11_device_xi2_query_state (device, surface, NULL, &px, &py, NULL);
|
||||||
|
|
||||||
gdk_x11_surface_get_root_coords (surface,
|
gdk_x11_surface_get_root_coords (surface,
|
||||||
round (px + dx),
|
round (px + dx),
|
||||||
@ -2270,7 +2271,7 @@ gdk_dnd_handle_key_event (GdkDrag *drag,
|
|||||||
* to query it here. We could use XGetModifierMapping, but
|
* to query it here. We could use XGetModifierMapping, but
|
||||||
* that would be overkill.
|
* that would be overkill.
|
||||||
*/
|
*/
|
||||||
_gdk_device_query_state (pointer, NULL, NULL, NULL, NULL, &state);
|
gdk_x11_device_xi2_query_state (pointer, NULL, NULL, NULL, NULL, &state);
|
||||||
|
|
||||||
if (dx != 0 || dy != 0)
|
if (dx != 0 || dy != 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user