lib/volay/widget/system_tray.rb in volay-0.2.0 vs lib/volay/widget/system_tray.rb in volay-0.3.0

- old
+ new

@@ -14,9 +14,12 @@ # @param [Gtk::Event] event Event # def on_status_icon_button_press_event(_widget, event) return unless event.is_a?(Gdk::EventButton) && event.button == LEFT_CLICK + return on_system_tray_window_focus_out_event if + @app.get_object('system_tray_window').visible? + window = @app.get_object('system_tray_window') posx, posy = get_position(window) window.move(posx, posy) @app.get_object('system_tray_window').show_all end