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 95026 - Calling gtk_window_resize with present window size causes futher resize attempts to fail
Calling gtk_window_resize with present window size causes futher resize attem...
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.0.x
Other Linux
: Normal minor
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2002-10-06 22:09 UTC by Jami Pekkanen
Modified: 2011-02-04 16:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test case showing the problem (940 bytes, text/plain)
2002-10-06 22:11 UTC, Jami Pekkanen
  Details
Probable fix (692 bytes, patch)
2002-10-06 23:07 UTC, Owen Taylor
none Details | Review
Another attempt, this time more comprehensive (2.14 KB, patch)
2002-10-07 16:44 UTC, Owen Taylor
none Details | Review

Description Jami Pekkanen 2002-10-06 22:09:11 UTC
If one tries to "resize" a window to it's present size further calls to
gtk_window_resize don't resize the window.
Comment 1 Jami Pekkanen 2002-10-06 22:11:09 UTC
Created attachment 11423 [details]
Test case showing the problem
Comment 2 Owen Taylor 2002-10-06 23:06:48 UTC
About to attach what I think is the correct fix. Could you
review the patch, Havoc?
Comment 3 Owen Taylor 2002-10-06 23:07:17 UTC
Created attachment 11425 [details] [review]
Probable fix
Comment 4 Havoc Pennington 2002-10-07 02:16:51 UTC
Looks right, the block in the other half of the if/else also 
sets position_constraints_changed = FALSE, should we do that 
here also?

Here's the other block:
      info->position_constraints_changed = FALSE;
      info->initial_pos_set = FALSE;
      info->resize_width = -1;
      info->resize_height = -1;
Comment 5 Owen Taylor 2002-10-07 16:44:58 UTC
Created attachment 11437 [details] [review]
Another attempt, this time more comprehensive
Comment 6 Owen Taylor 2002-10-07 16:53:18 UTC
Mon Oct  7 12:40:39 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkwindow.c (gtk_window_move_resize): Clean
        up the handling of clearing transient state
        settings, fixing bug #95026, reported by Jami
        Pekannen.