visualizer: Fix warning when using wayland

'window [..] is a temporary window without parent, application will not be able to position it on screen'
This commit is contained in:
André Apitzsch
2022-09-09 09:13:08 +02:00
committed by Gabriel Ferreira
parent b44f4911fc
commit e10586ee02

View File

@@ -1628,7 +1628,7 @@ class Visualizer(GObject.GObject):
def popup_node_menu(self, node, event):
menu = Gtk.Menu()
self.emit("populate-node-menu", node, menu)
menu.popup(None, None, None, None, event.button, event.time)
menu.popup_at_pointer(event)
def _update_ipython_selected_node(self):
# If we are running under ipython -gthread, make this new