window's position not restored on start-up
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Low
|
Patrick Storz | ||
0.92.x |
Fix Released
|
Low
|
Patrick Storz |
Bug Description
= Inkscape 0.46-pre2. =
With preferences set to "Remember and use last window's geometry", Inkscape will not restore saved window's position and size if x (or y) position is negative or zero.
I always resize main window, such that it's frame is outside of the desktop area, but even at exact 0, window's position will not be restored.
Code at fault is in interface.cpp, function sp_create_window(), lines starting at if (prefs_geometry) condition. sp-namedview.cpp has a copy of this code too. Condition if (w>0 && h>0 && x>0 && y>0) is causing that.
Ideally not a screen size, but a working desktop area of the correct monitor should be used. I know how to do that in win32, but have no clue if it's possible in GTK 2.10 (couldn't find right functions). Let me know how to proceed with a fix, and perhaps I will be able to send you a patch.
Changed in inkscape: | |
status: | Incomplete → New |
importance: | Undecided → Low |
Changed in inkscape: | |
milestone: | none → 0.93 |
status: | Triaged → In Progress |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
I can confirm this behaviour with Inkscape 0.46 and SVN 21198 on Ubuntu Intrepid 64bit. The window is correctly placed if it was closed within the desktop, but not if it was closed outside the desktop. I'm not sure what the expected behaviour is however. What do you expect to happen?