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 660475 - "Windowed Mode" doesn't remember maximize state
"Windowed Mode" doesn't remember maximize state
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: User Interface
2.7.3
Other All
: Normal enhancement
: ---
Assigned To: GIMP Bugs
GIMP Bugs
: 675528 676666 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-09-29 13:49 UTC by Brian Krische
Modified: 2018-05-24 13:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH] app: Save the maximized state of the main window in the sessionrc file. (3.53 KB, patch)
2012-04-04 01:35 UTC, Mike Henning (drawoc)
none Details | Review
Added a testcase. (8.60 KB, patch)
2012-04-05 20:26 UTC, Mike Henning (drawoc)
none Details | Review
Patch with testcase & fixed variable names. (8.62 KB, patch)
2012-04-05 20:44 UTC, Mike Henning (drawoc)
needs-work Details | Review
[PATCH] app: Save maximize state of image window in multi-window-mode too. (3.57 KB, patch)
2012-05-27 20:09 UTC, Mike Henning (drawoc)
needs-work Details | Review

Description Brian Krische 2011-09-29 13:49:29 UTC
Using the new "Windowed Mode", I exit GIMP with the window maximized. Upon the next startup, the window retains the previous size, but is not maximized and located roughly 25px from the top of the monitor.
Comment 1 Alexia Death 2011-09-30 07:25:47 UTC
Not supported yet. Planned for 2.10
Comment 2 Alexia Death 2011-09-30 07:26:42 UTC
Or later.
Comment 3 Brian Krische 2011-09-30 14:33:50 UTC
Do we leave this ticket open or close it then?
Comment 4 Martin Nordholts 2011-09-30 14:35:59 UTC
Keep it open, the problem exists.
Comment 5 Mike Henning (drawoc) 2012-04-04 01:35:34 UTC
Created attachment 211254 [details] [review]
[PATCH] app: Save the maximized state of the main window in the  sessionrc file.

This bothered me a lot, so I wrote a patch.

I also looked at doing this more generally from gimpsessioninfo, but since there's no nice way to retrieve the maximized state of an arbitrary window, I did it specifically for gimpimagewindow. (I don't really see many people maximizing toolbox windows anyway, so it's no huge loss.)
Comment 6 Michael Schumacher 2012-04-04 07:05:56 UTC
Some people maximize the toolbox Window to get a toolbar-like view of the tool icons, but that is arguably an uncommon usage.
Comment 7 Martin Nordholts 2012-04-04 19:22:04 UTC
After a quick look on the patch, it looks reasonable. However, this is an area in which it is easy to break something when fixing something else. It would help a lot if you also provided a test case in app/tests/test-ui,c. Writing test cases for fixes in this area will make it possible to improve and refactor this code. Without test cases, it will be hell, because it will be too much work to verify that a change did not break anything.
Comment 8 Mike Henning (drawoc) 2012-04-05 20:26:47 UTC
Created attachment 211429 [details] [review]
Added a testcase.
Comment 9 Mike Henning (drawoc) 2012-04-05 20:44:32 UTC
Created attachment 211430 [details] [review]
Patch with testcase & fixed variable names.

I forgot to change my variable names to be consistent w/ the coding style for the last patch. This one should be better.
Comment 10 Michael Schumacher 2012-05-18 11:17:52 UTC
*** Bug 675528 has been marked as a duplicate of this bug. ***
Comment 11 Michael Schumacher 2012-05-23 18:13:50 UTC
*** Bug 676666 has been marked as a duplicate of this bug. ***
Comment 12 Michael Natterer 2012-05-27 18:53:17 UTC
Looks good to me, pushed to master. After some testing, I think it's
safe to merge to 2-8.

commit 89760cf044a9aed9b05dfb3f9e6d1da8449018d2
Author: Michael Henning <mikehenning@eclipse.net>
Date:   Tue Apr 3 20:59:37 2012 -0400

    app: Save the maximized state of the main window in the sessionrc file.

 app/display/gimpimagewindow.c                      |   33 +++++++++++++++++--
 app/display/gimpimagewindow.h                      |    1 +
 app/tests/gimpdir/sessionrc-2-8-single-window      |    3 +-
 app/tests/gimpdir/sessionrc-expected-single-window |    3 +-
 app/tests/test-ui.c                                |   62 +++++++++++++++++++++++++++++++++++
 5 files changed, 98 insertions(+), 4 deletions(-)
Comment 13 Michael Natterer 2012-05-27 18:54:30 UTC
One question: why is this only applied in single-window-mode? There is imo
no reason not to save the state of the empty image window in
multi-window-mode.
Comment 14 Mike Henning (drawoc) 2012-05-27 20:09:28 UTC
Created attachment 215103 [details] [review]
[PATCH] app: Save maximize state of image window in  multi-window-mode too.

I forget exactly why I did that.

In multi window mode, if you maximize the new image window, make a new file, and then close the file, the new image window isn't maximized any more, which might have given me the impression that the new image window isn't meant to be maximized or something. Now that I think about it more, I suppose that's a bug.

Well, anyway, this patch makes it save the maximized state in multi-window mode too, but because of that bug I just mentioned, the patch is ineffective unless our users don't open or create any images.

I imagine that most of the GIMP's users open or create images while using program. The rest of the users just open the program so that wilber can creepily stare at them while they work (That's probably just you, mitch).
Comment 15 Michael Natterer 2012-05-27 20:43:44 UTC
Yeah, I shall make his eyes glow :P
Comment 16 Michael Natterer 2014-12-02 21:31:12 UTC
drawoc? What about this patch?
Comment 17 Michael Schumacher 2015-11-01 01:18:09 UTC
Is there a reason why this hasn't been applied yet?
Comment 18 Michael Schumacher 2015-11-01 01:26:47 UTC
Comment on attachment 211430 [details] [review]
Patch with testcase & fixed variable names.

Doesn't apply cleanly anymore
Comment 19 Michael Schumacher 2015-11-01 01:27:24 UTC
Comment on attachment 215103 [details] [review]
[PATCH] app: Save maximize state of image window in  multi-window-mode too.

Has to be checked once the first attachment applies again
Comment 20 GNOME Infrastructure Team 2018-05-24 13:03:17 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gimp/issues/379.