GNOME Bugzilla – Bug 675874
Race between maximise and resizable
Last modified: 2018-02-10 03:44:55 UTC
Created attachment 213868 [details] test case Probably a bug in GTK+' interaction with the window managers. Doing: gtk_window_set_resizable (GTK_WINDOW (self->priv->window), TRUE); gtk_window_maximize (GTK_WINDOW (self->priv->window)); Fails. Doing: gtk_window_set_resizable (GTK_WINDOW (self->priv->window), TRUE); [wait a bit] gtk_window_maximize (GTK_WINDOW (self->priv->window)); Works. Tested with GTK+ from master. See also https://bugzilla.gnome.org/show_bug.cgi?id=673869#c47 for reproducer in gnome-control-center.
There's a similar problem with: gtk_window_set_resizable (GTK_WINDOW (self->priv->window), TRUE); gtk_scrolled_window_set_min_content_height (GTK_SCROLLED_WINDOW (self->priv->scrolled_window), SMALL_SCREEN_FIXED_HEIGHT); Where the window would only change size again when window focus changes. Do we need an async gtk_window_set_resizable()? Should GTK+ buffer those changes to be done after we know the window manager has processed resizable having changed?
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue for it.