All dockable floating dialogs change location

Bug #1201294 reported by Michael-gr
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Low
Unassigned

Bug Description

When positioning dockable, but currently floating, dialogs (for example, document properties, preferences, layers, etc), if I close the dialog and then open it again it will appear in a different location. This location is about 115-130 pixels towards the top and to the right, meaning that over time as you open and close them dialogs gravitate towards the top right corner of the screen.
The change is position seems to be inconsistent - I measured it in several consecutive open-close cycles and it is never quite the same, minimum was 115px and maximum was 130px.

To reproduce: open a floating dialog, close it, open again, repeat several times.

tested on Inkscape 0.48+devel r12395 and Windows 7.

su_v (suv-lp)
tags: added: ui
Revision history for this message
jazzynico (jazzynico) wrote :

Reproduced on Windows XP, Inkscape 0.48.4 and trunk revision 12501.

Changed in inkscape:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
jazzynico (jazzynico) wrote :

Some findings:

1. The bug can't be reproduced when the dialog behavior is set to 'Floating' in the preferences (Interface>Windows>Dialog behavior in 0.49), but only when the preference is set to 'Docked' and when the dialog is undocked.

2.1. When closing the dialog (X icon or Ctrl+W), Inkscape calls Inkscape::UI::Dialog::Dialog::save_geometry(), which then calls Inkscape::UI::Dialog::DockBehavior::get_position(int &x, int &y). The returned position is related to a Widget::DockItem and is not correct.
2.2. When closing the application with the dialog open, save_geometry() then calls Inkscape::UI::Dialog::FloatingBehavior::get_position(int &x, int &y). The returned position is related to a Gtk::Dialog and is correct (that's the reason why the dialog's position is correct when you restart Inkscape).

Nathan Lee (nathan.lee)
tags: added: bug-migration
Revision history for this message
Nathan Lee (nathan.lee) wrote :

Hi - thanks for reporting this bug, I've manually migrated it to Inkscape's new
bug tracker on GitLab, and closed it here.

Please feel free to file new bugs about the issues you're seeing at
http://inkscape.org/report.

Moved to: https://gitlab.com/inkscape/inbox/issues/395
Closed by: https://gitlab.com/nathanal

Changed in inkscape:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.