aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/callbacks.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/callbacks.c')
-rw-r--r--src/callbacks.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/callbacks.c b/src/callbacks.c
index 5873b5e..33c9766 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -598,6 +598,25 @@ button_press_cb (GtkWidget* window, GdkEventButton* event) {
}
}
+ if(event->type == GDK_2BUTTON_PRESS || event->type == GDK_3BUTTON_PRESS) {
+ if(event->button == 1) {
+ sendev = TRUE;
+ propagate = TRUE;
+ }
+ else if(event->button == 2 && !(context & WEBKIT_HIT_TEST_RESULT_CONTEXT_EDITABLE)) {
+ sendev = TRUE;
+ propagate = TRUE;
+ }
+ else if(event->button > 3) {
+ sendev = TRUE;
+ propagate = TRUE;
+ }
+
+ if(sendev) {
+ button_to_event(event->button, event->state, event->type);
+ }
+ }
+
return propagate;
}