Fix glitching on "events" (like loop markers) due to taking the processing offset...
[ardour.git] / gtk2_ardour / plugin_ui.h
index 244fc6e9cde4dae087eaa4b1cff2efbaf97d7e95..b23b747639818ead6ae2cbf559033eea17d88aa5 100644 (file)
@@ -202,22 +202,30 @@ class GenericPluginUI : public PlugUIBase, public Gtk::VBox
 class PluginUIWindow : public Gtk::Window
 {
   public:
-       PluginUIWindow (boost::shared_ptr<ARDOUR::PluginInsert> insert, bool scrollable=false);
+       PluginUIWindow (Gtk::Window*, boost::shared_ptr<ARDOUR::PluginInsert> insert, bool scrollable=false);
        ~PluginUIWindow ();
 
        PlugUIBase& pluginui() { return *_pluginui; }
 
        void resize_preferred();
+       void set_parent (Gtk::Window*);
 
+       bool on_enter_notify_event (GdkEventCrossing*);
+       bool on_leave_notify_event (GdkEventCrossing*);
        bool on_key_press_event (GdkEventKey*);
        bool on_key_release_event (GdkEventKey*);
        void on_show ();
        void on_hide ();
        void on_map ();
+
+
   private:
        PlugUIBase* _pluginui;
+       Gtk::Window* parent;
        Gtk::VBox vbox;
        bool non_gtk_gui;
+       bool was_visible;
+
        void app_activated (bool);
        void plugin_going_away ();