Cursor stays in wait status for some seconds after calling gtk_show_uri_on_window
Steps to reproduce
- Use
gtk_show_uri_on_window
to open a file URI with Nautilus. - Keep Nautilus open in the same directory and repeat 1.
Small example script (click the button twice to reproduce the issue):
#! /usr/bin/env python3
from gi.repository import Gtk
window = Gtk.Window()
button = Gtk.Button()
window.add(button)
window.show_all()
def on_button_clicked(button):
Gtk.show_uri_on_window(window, "file:///", Gtk.get_current_event_time())
button.connect("clicked", on_button_clicked)
Gtk.main()
Current behavior
The already opened Nautilus window is raised, but the mouse cursor stays in wait status for up to 10 seconds afterwards.
Expected outcome
The already opened Nautilus window is raised and the mouse cursor turns back to normal immediately.
Version information
Tested with these setups:
- GTK+ 3.22.30-2 on Debian Unstable
- GTK+ 3.22.11-1 on Debian 9 (Stable)
Additional information
Opening the same URI via xdg-open
results in the expected outcome.