aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-text-event-processor-emacs-like.c1
-rw-r--r--e-util/e-text-event-processor-types.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/e-util/e-text-event-processor-emacs-like.c b/e-util/e-text-event-processor-emacs-like.c
index fa724a2c77..2a42ae939c 100644
--- a/e-util/e-text-event-processor-emacs-like.c
+++ b/e-util/e-text-event-processor-emacs-like.c
@@ -133,6 +133,7 @@ e_text_event_processor_emacs_like_event (ETextEventProcessor *tep,
case GDK_BUTTON_PRESS:
if (event->button.button == 1 || event->button.button == 2) {
command.action = E_TEP_GRAB;
+ command.device = event->button.device;
command.time = event->button.time;
g_signal_emit_by_name (tep, "command", &command);
if (event->button.button == 1 && event->button.state & GDK_SHIFT_MASK)
diff --git a/e-util/e-text-event-processor-types.h b/e-util/e-text-event-processor-types.h
index 6e9d155f8c..d7d0bb3854 100644
--- a/e-util/e-text-event-processor-types.h
+++ b/e-util/e-text-event-processor-types.h
@@ -85,6 +85,7 @@ typedef struct {
ETextEventProcessorCommandAction action;
gint value;
const gchar *string;
+ GdkDevice *device;
guint32 time;
} ETextEventProcessorCommand;
@@ -94,6 +95,7 @@ typedef struct {
guint state;
guint button;
gint position;
+ GdkDevice *device;
} ETextEventProcessorEventButton;
typedef struct {