summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-06-22 09:55:07 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-06-22 09:55:07 +0200
commit8ece63433512bc418a99976eead800a37f11c080 (patch)
treeac15d0a8d896f1c906f9e5516b90d559dcb5bc72 /src
parentb37c4b5c80a3b6c0fc40f0b949238e3d86691289 (diff)
reset focused mountain on middle mouse click
Diffstat (limited to 'src')
-rw-r--r--src/GipfelWidget.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx
index 8a358db..0a89e53 100644
--- a/src/GipfelWidget.cxx
+++ b/src/GipfelWidget.cxx
@@ -647,6 +647,8 @@ GipfelWidget::handle(int event) {
redraw();
}
} else if (Fl::event_button() == FL_RIGHT_MOUSE) {
+ focused_mountain = NULL;
+
Fl_Menu_Button rclick_menu(Fl::event_x_root(),
Fl::event_y_root(), 80, 1);
Hill *m = find_mountain(pan->get_visible_mountains(),