User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20070126 Ubuntu/dapper-security Epiphany/2.14 Firefox/1.5.0.9 Build Identifier: The window state and position is not correctly remembered. If the window is maximized, the position and size as maximized is remembered. Position and state should be separate, and the remembered position should only be updated if the window is not maximized nor minimized. Reproducible: Always Steps to Reproduce: 1. Open mousepad with the window restored. Resize it as you like it 2. Maximize the mousepad window 3. Close the mousepad window 4. Start mousepad again 5. Restore the window Actual Results: When the window is restored it still covers the entire screen Expected Results: The window position after it's restored should be the same as it was before it was maximized (at step 1).
Can something similar to http://bugzilla.xfce.org/show_bug.cgi?id=4697#c15 be done here?
Confirming this bug is still present in mousepad 0.2.16-6 in Debian wheezy.
Here Mousepad 0.3.0 can "remember" the window size but not position or state(maximized or not). I'll give it try to make a patch soon.
As long as it doesn't show up off-screen when the user unplugs a monitor :)
(In reply to Matthew Brush from comment #4) > As long as it doesn't show up off-screen when the user unplugs a monitor :) Now that you mentioned the word 'monitor', I wonder how to handle multiple monitors correctly... for example, in which monitor the window was and what if the windows is between two displays? I can't test this :/
I implemented this (rather naively) in http://git.xfce.org/apps/mousepad/commit/?id=ea2b28e09dd8477af5a5a238c58bf42944a6f8a4.
I've just grabbed the latest from master(58adbe7) for testing. The window size is restored as before, now the state(maximized or fullscreen) is also restored, but the window position is not :( Taking a look at dconf, the left and top prefs are stuck with "-1". System specs: Archlinux 64 updated Dual monitor(1920x1080 + 1440x900) Xfwm4 or Kwin
Just to be sure, did you enable 'Remember window position' checkbox in the preferences dialog? I left it off by default to retain existing behaviour.
No, I didn't ^^ Now it works almost nicely :) I've just notice that if I change something(position, state or size) and close mousepad quickly, the preference won't be updated, it has a 2 sec delay to save. Is this intentional?
Yeah, there's an existing 1-2 second g_timeout_add() in there to buffer rapid changes (I think). It could be done differently to make it faster without stacking up, but some mechanism is probably useful since GDK configure events can come in really fast (eg. when dragging/resizing the window).