Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Repeatedly running dialogs causes window rendering issues. #952
First noticed this in my app, Marmoset (https://github.com/sprang/marmoset), but it's reproducible in the "menu_bar" example application:
Expected normal window behavior. Actual: Main window flashes back to previous size and is otherwise visually glitchy.
Reproducible with AboutDialog and MessageDialog in Marmoset (where the contents of the window also draw incorrectly).
Running on Arch Linux with latest Rust and Gtk-rs.
I don't know why this happens but this is going to be a bug in GTK. Please report it here: https://gitlab.gnome.org/GNOME/gtk/issues/new
On our side this can be worked around by not running a recursive main loop (i.e. not calling
I'll submit a PR for changing all the examples in a few minutes.