summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mono_panner.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-02-07 16:48:05 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-02-07 16:48:05 +0000
commitd3300660a350b742f140da207106db3391186d5b (patch)
tree4b977232a0b587eeceb72bd1c526f911b12eeba9 /gtk2_ardour/mono_panner.cc
parentf86ffe84ecec7c7c4583f2b76dd99009f5e43e9f (diff)
make panner data popups more contrasty and appear in a better position
git-svn-id: svn://localhost/ardour2/branches/3.0@8740 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/mono_panner.cc')
-rw-r--r--gtk2_ardour/mono_panner.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/mono_panner.cc b/gtk2_ardour/mono_panner.cc
index 52c417a9fd..9627f87106 100644
--- a/gtk2_ardour/mono_panner.cc
+++ b/gtk2_ardour/mono_panner.cc
@@ -374,6 +374,7 @@ MonoPanner::on_motion_notify_event (GdkEventMotion* ev)
if (!drag_data_window) {
drag_data_window = new Window (WINDOW_POPUP);
+ drag_data_window->set_name (X_("ContrastingPopup"));
drag_data_window->set_position (WIN_POS_MOUSE);
drag_data_window->set_decorated (false);
@@ -392,7 +393,9 @@ MonoPanner::on_motion_notify_event (GdkEventMotion* ev)
if (!drag_data_window->is_visible ()) {
/* move the window a little away from the mouse */
- drag_data_window->move (ev->x_root+30, ev->y_root+30);
+ int rx, ry;
+ get_window()->get_origin (rx, ry);
+ drag_data_window->move (rx, ry+get_height());
drag_data_window->present ();
}