GNOME Bugzilla – Bug 620267
gtk_window_present restores maximized window
Last modified: 2018-04-15 00:37:29 UTC
Create a GtkWindow and maximize it using the 'snap' feature available in Windows 7 (by bumping the title bar to the top of the screen). Once the window is maximized in this way, a call to gtk_window_present will bring the window back to normal mode. Notice that if the window is maximized using another method (e.g. double clicking on the title bar).
Created attachment 176450 [details] [review] sample patch FWIW, attached is the patch I use to fix this problem (gdk/win32/gdkwindow-win32.c part). It's for 2.16 though, I don't know if it works in/applies to current code.
Dup of 698652.
We're moving to gitlab! As part of this move, we are moving bugs to NEEDINFO if they haven't seen activity in more than a year. If this issue is still important to you and still relevant with GTK+ 3.22 or master, please reopen it and we will migrate it to gitlab.
As announced a while ago, we are migrating to gitlab, and bugs that haven't seen activity in the last year or so will be not be migrated, but closed out in bugzilla. If this bug is still relevant to you, you can open a new issue describing the symptoms and how to reproduce it with gtk 3.22.x or master in gitlab: https://gitlab.gnome.org/GNOME/gtk/issues/new