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 161236 - Unmaximizing of windows not proper in wireframe mode
Unmaximizing of windows not proper in wireframe mode
Status: RESOLVED FIXED
Product: metacity
Classification: Other
Component: general
trunk
Other Linux
: Normal normal
: ---
Assigned To: Metacity maintainers list
Metacity maintainers list
Depends on:
Blocks:
 
 
Reported: 2004-12-14 05:11 UTC by Srirama Sharma
Modified: 2005-11-18 01:58 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
Screenshot of window before maximizing/unmaximizing with wireframe on (121.16 KB, image/png)
2004-12-14 05:17 UTC, Srirama Sharma
  Details
Screenshot of window after maximizing and then unmaxizing. (127.25 KB, image/png)
2004-12-14 05:19 UTC, Srirama Sharma
  Details
patch which fixes the bug (1.44 KB, patch)
2005-01-05 14:16 UTC, Leena Gunda
committed Details | Review

Description Srirama Sharma 2004-12-14 05:11:38 UTC
1. Using gconf-editor, set /apps/metacity/general/reduced_resources to TRUE. 
2. Double-click on the titlebar of a window so that the window is now maximized. 
3. Double-click on the titlebar again. 
 
Bug: The window is not restored to its original size. 
 
Expected Behaviour: The window should be restored to its original size. 
 
Note: Clicking on the maximize/unmaximize button on the window or selecting 
Maximize/Unmaximize on the window context-menu works fine.
Comment 1 Srirama Sharma 2004-12-14 05:17:55 UTC
Created attachment 34818 [details]
Screenshot of window before maximizing/unmaximizing with wireframe on
Comment 2 Srirama Sharma 2004-12-14 05:19:55 UTC
Created attachment 34819 [details]
Screenshot of window after maximizing and then unmaxizing.
Comment 3 Srirama Sharma 2004-12-14 06:15:47 UTC
Action: Double-click - to unmaximize 
 
- meta_window_unmaximize () is first called for the button-press event, which restores the 
window correctly. 
 
- next meta_display_end_grab_op () is called. 
        it has a check:  
            if (display->grab_wireframe_active)  
              { 
                   .... 
                   .... 
                   meta_window_move_resize () 
                } 
 
        Now, this meta_window_move_resize () call is causing the problem. The width and height 
passed to this call is that of grab_wireframe window, which incidentally is height and width of 
the previous state (maximized state) 
 
Did a quick hack 
               if (display->grab_wireframe_active)  
                 { 
                   .... 
                   .... 
                       if (! display->is_double_click) 
                            meta_window_move_resize () 
                 } 
This did fix the bug but caused another problem. Doing a double click on the edge of the 
window to re-size it stopped working.  
Comment 4 Luis Villa 2005-01-03 03:59:03 UTC
Bizarre. Tempted to call this major; it's pretty irritating if you're using that
combination of settings.
Comment 5 Leena Gunda 2005-01-03 05:11:06 UTC
When a window is unmaximized, the wireframe rectangle co-ordinates should also
be re-stored to the saved window co-ordinates in meta_window_unmaximize (). This
fixes the bug.
Comment 6 Leena Gunda 2005-01-05 14:16:04 UTC
Created attachment 35479 [details] [review]
patch which fixes the bug
Comment 7 Havoc Pennington 2005-01-05 20:35:04 UTC
Comment on attachment 35479 [details] [review]
patch which fixes the bug

Looks like a good idea, thanks.
Comment 8 Leena Gunda 2005-01-06 05:26:46 UTC
Committed the patch to HEAD. Thanks.