After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 620267 - gtk_window_present restores maximized window
gtk_window_present restores maximized window
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Backend: Win32
unspecified
Other Windows
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2010-06-01 15:05 UTC by Lluis Sanchez
Modified: 2018-04-15 00:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sample patch (2.63 KB, patch)
2010-12-15 08:34 UTC, Yevgen Muntyan
none Details | Review

Description Lluis Sanchez 2010-06-01 15:05:56 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).
Comment 1 Yevgen Muntyan 2010-12-15 08:34:15 UTC
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.
Comment 2 Yevgen Muntyan 2016-02-04 07:39:36 UTC
Dup of 698652.
Comment 3 Matthias Clasen 2018-02-10 05:26:29 UTC
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.
Comment 4 Matthias Clasen 2018-04-15 00:37:29 UTC
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