summaryrefslogtreecommitdiff
path: root/gdk/gdkwindowimpl.h
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 14:39:25 +0200
commite8b38fedbd8961df4aaaa75b122a06ddc68e75f2 (patch)
treef8543ff9715a6f480e1bc645268844455ed3df2e /gdk/gdkwindowimpl.h
parent867ba1df27b9ed27d2d3ed6d43b536484635da18 (diff)
downloadgtk+-e8b38fedbd8961df4aaaa75b122a06ddc68e75f2.tar.gz
gdk: Convert mouse position to doubles, add new getters
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/gdkwindowimpl.h')
-rw-r--r--gdk/gdkwindowimpl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/gdkwindowimpl.h b/gdk/gdkwindowimpl.h
index 7f136a59bb..b1117a7177 100644
--- a/gdk/gdkwindowimpl.h
+++ b/gdk/gdkwindowimpl.h
@@ -98,8 +98,8 @@ struct _GdkWindowImplClass
gint *root_y);
gboolean (* get_device_state) (GdkWindow *window,
GdkDevice *device,
- gint *x,
- gint *y,
+ gdouble *x,
+ gdouble *y,
GdkModifierType *mask);
gboolean (* begin_paint_region) (GdkWindow *window,
const cairo_region_t *region);