aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Brendan Taylor <whateley@gmail.com>2011-10-30 18:50:13 +0000
committerGravatar Brendan Taylor <whateley@gmail.com>2011-10-30 18:50:13 +0000
commite2f3fe51149c8924b83899db87425ea1a462dc4b (patch)
tree547828e85571db49fa51f80d3b79a68dbb44dc4b /src
parent8315dbfe77cef9f0592eb412b0b122c5a73307a8 (diff)
parent4e9672c31ee7790cb4a0453b7d45d3e89613c035 (diff)
Merge branch 'master' of github.com:Dieterbe/uzbl
Diffstat (limited to 'src')
-rw-r--r--src/callbacks.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/callbacks.c b/src/callbacks.c
index ae5c2e3..f939454 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -165,12 +165,13 @@ button_press_cb (GtkWidget* window, GdkEventButton* event) {
gboolean propagate = FALSE,
sendev = FALSE;
+ context = get_click_context(NULL);
+
if(event->type == GDK_BUTTON_PRESS) {
if(uzbl.state.last_button)
gdk_event_free((GdkEvent *)uzbl.state.last_button);
uzbl.state.last_button = (GdkEventButton *)gdk_event_copy((GdkEvent *)event);
- context = get_click_context(NULL);
/* left click */
if(event->button == 1) {
if((context & WEBKIT_HIT_TEST_RESULT_CONTEXT_EDITABLE))