summaryrefslogtreecommitdiff
path: root/gdk/wayland/gdkwindow-wayland.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2013-07-03 11:52:58 +0200
committerAlexander Larsson <alexl@redhat.com>2013-07-03 12:07:05 +0200
commit42306022a04c681868be4b250d353950ca300c0c (patch)
tree10b8d5e8b9df3f3e4ce1aaa30caa9c697cf12676 /gdk/wayland/gdkwindow-wayland.c
parent0c990645de3f0c8cd9fe07b71c3b0ca7477ade7a (diff)
downloadgtk+-wip/window-scales.tar.gz
gdk: Convert mouse position to doubles, add new getterswip/window-scales
We've long had double precision mouse coordinates on wayland (e.g. when rotating a window) but with the new scaling we even have it on X (and, its also in Xinput2), so convert all the internal mouse/device position getters to use doubles and add new accessors for the public APIs that take doubles instead of ints.
Diffstat (limited to 'gdk/wayland/gdkwindow-wayland.c')
-rw-r--r--gdk/wayland/gdkwindow-wayland.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index f872049d04..a6e68d5f66 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -1237,8 +1237,8 @@ gdk_window_wayland_get_root_coords (GdkWindow *window,
static gboolean
gdk_window_wayland_get_device_state (GdkWindow *window,
GdkDevice *device,
- gint *x,
- gint *y,
+ gdouble *x,
+ gdouble *y,
GdkModifierType *mask)
{
gboolean return_val;