summaryrefslogtreecommitdiff
path: root/src/ui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.cc')
-rw-r--r--src/ui.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ui.cc b/src/ui.cc
index 87fab74f..47c6d220 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -625,6 +625,8 @@ UI::UI(int x, int y, int ww, int wh, const char* label, const UI *cur_ui) :
if (f)
this->labelfont(f);
+ PointerOnLink = FALSE;
+
Tabs = NULL;
TabTooltip = NULL;
TopGroup = new PackedGroup(0, 0, ww, wh);
@@ -801,6 +803,14 @@ int UI::handle(int event)
ret = 1;
}
}
+
+ } else if (event == PUSH) {
+ if (prefs.middle_click_drags_page == 0 &&
+ event_button() == MiddleButton &&
+ !a_UIcmd_pointer_on_link(a_UIcmd_get_bw_by_widget(this))) {
+ paste_url();
+ ret = 1;
+ }
}
if (!ret)