Repeat of recent fix to EditorRoutes to improve behaviour when editing names.
authorCarl Hetherington <carl@carlh.net>
Sat, 1 Jan 2011 20:08:26 +0000 (20:08 +0000)
committerCarl Hetherington <carl@carlh.net>
Sat, 1 Jan 2011 20:08:26 +0000 (20:08 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@8407 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/editor_regions.cc

index 4647104753abb246ff061deda9f51e1e5ff3910a..357bb7295e2f955125792b2505abe80005f8d1f2 100644 (file)
@@ -206,6 +206,10 @@ EditorRegions::focus_out (GdkEventFocus*)
 bool
 EditorRegions::enter_notify (GdkEventCrossing* ev)
 {
+       if (name_editable) {
+               return true;
+       }
+       
        /* arm counter so that ::selection_filter() will deny selecting anything for the 
           next two attempts to change selection status.
        */
@@ -222,7 +226,6 @@ EditorRegions::leave_notify (GdkEventCrossing*)
                old_focus = 0;
        }
 
-       name_editable = 0;
        Keyboard::magic_widget_drop_focus ();
        return false;
 }