summaryrefslogtreecommitdiff
path: root/src/nautilus-canvas-private.h
diff options
context:
space:
mode:
authorJason Gerecke <killertofu@gmail.com>2017-06-15 09:04:53 -0700
committerCarlos Soriano <csoriano@gnome.org>2017-06-15 18:33:43 +0200
commitee67066c99605035eb8311e7a2ed8c2be4fcbd04 (patch)
tree6d4d2fe0b8591427cc7be188b0369219c4b17a22 /src/nautilus-canvas-private.h
parent18f0f93d14710d059c56403a6ae1c10f1c70f7bb (diff)
downloadnautilus-ee67066c99605035eb8311e7a2ed8c2be4fcbd04.tar.gz
canvas-container: Use rubberband coordinates from original device
Nautilus assumes that the pointer returned by gdk_seat_get_pointer will return the same GdkDevice which started a rubberband action. This is not necessarily the case, however. Under Wayland, for example, tablet tools have pointers (and GdkDevice's) which are entirely separate from the seat's primary mouse-driven pointer. Attempting to use a pen to perform rubberband selection will result in the rectangle being drawn with the incorrect coordinates. This patch has the code store the GdkDevice which generated the event and provides it in place of the call to gdk_seat_get_pointer. https://bugzilla.gnome.org/show_bug.cgi?id=783797
Diffstat (limited to 'src/nautilus-canvas-private.h')
-rw-r--r--src/nautilus-canvas-private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nautilus-canvas-private.h b/src/nautilus-canvas-private.h
index 6b44952ca..0f3ad706b 100644
--- a/src/nautilus-canvas-private.h
+++ b/src/nautilus-canvas-private.h
@@ -75,6 +75,7 @@ typedef struct {
double start_x, start_y;
EelCanvasItem *selection_rectangle;
+ GdkDevice *device;
guint timer_id;