diff options
author | jcid <devnull@localhost> | 2008-10-26 19:21:51 +0100 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-10-26 19:21:51 +0100 |
commit | 989c6785ff153d4a84a176639420aa1837ead2d7 (patch) | |
tree | b1e403ecd61f28f999b357e3cb1960dd5dd98391 /src/ui.cc | |
parent | e48bb7717ec4a51abf1a2d467a5b1dbebf61888a (diff) |
- Added the "middle_click_drags_page" dillorc option.
Diffstat (limited to 'src/ui.cc')
-rw-r--r-- | src/ui.cc | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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) |