GNOME Bugzilla – Bug 559280
gedit doesn't reuse maximized window, opens new window instead
Last modified: 2009-03-03 14:13:15 UTC
Please describe the problem: When gedit window is maximized to the whole desktop using maximus from ubuntu-netbook of by using Compiz - remove decorations then new file will be opened in new windows instead of tab in last window Steps to reproduce: 1. Using Compiz, in ccsm, in Window Decorations, there's a line "Decoration windows". Replace the default "any" with "!state=maxvert" 2.Launch gedit and maximize window 3.Launch gedit <somefile> again Actual results: New window will be opened Expected results: New tab shoule be opened Does this happen every time? yes, when window is maximized Other information: This make gedit slightly unconvinient to use on netbooks
Proposed patch is $ diff gedit-app.c.orig gedit-app.c 665c665 < y + height < viewport_y + sc_height; --- > y + height <= viewport_y + sc_height; This worked good for me with compiz and maximized windows.
Sorry, this patch fell through the cracks and I failed to notice it! I committed it now and it will be in the next version. Thanks! In the future make sure to attach the patch file instead of adding it as a comment so that it shows up on our patch summary. Also make sure to create the patch in uthe "unified diff" format, in other words specify the -u option to the diff command.
*** Bug 549058 has been marked as a duplicate of this bug. ***