[gtk] Save as dialog: dropdown menu surface positioned wrong

Bug #1655997 reported by Gerry Boland
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
GTK+
Fix Released
Undecided
William Hua
MirAL
Invalid
Undecided
Unassigned
gtk+3.0 (Ubuntu)
Fix Released
Undecided
William Hua

Bug Description

Running miral-shell and gedit:

1. Burger-menu -> Save As
2. Click the "Character encoding" or "Line ending" or "All files" dropdowns

Bug: child surfaces are positioned incorrectly, should be under/over the widget that invoked them

Gerry Boland (gerboland)
tags: added: gtk-mir
William Hua (attente)
Changed in gtk:
assignee: nobody → William Hua (attente)
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Trying this.

[2017-01-19 10:05:32.084501] miral::Window Management: place_new_surface app_info={application=GDK-Mir, windows={Untitled Document 2 - gedit, gedit}}, requested_specification={name=Save As, type=dialog, top_left=(12, 12), size=(762, 559), output_id=0, state=restored, min_width=571, min_height=431} -> {name=Save As, type=dialog, top_left=(12, 24), size=(762, 559), output_id=0, state=restored, min_width=571, min_height=431}
...
[2017-01-19 10:05:42.800374] miral::Window Management: place_new_surface app_info={application=GDK-Mir, windows={Untitled Document 2 - gedit, gedit, Save As, gedit, gedit}}, requested_specification={name=gedit, type=menu, top_left=(308, 178), size=(169, 99), output_id=0, state=restored, aux_rect=((135, 484), (169, 30)), min_width=169, min_height=99, max_width=169, max_height=99, parent=Save As} -> {name=gedit, type=menu, top_left=(308, 178), size=(169, 99), output_id=0, state=restored, aux_rect=((135, 484), (169, 30)), min_width=169, min_height=99, max_width=169, max_height=99, parent=Save As}
[2017-01-19 10:05:42.800507] miral::Window Management: advise_new_window window_info={name=gedit, type=menu, state=restored, restore_rect=((308, 178), (169, 99)), parent=Save As, children={}, min_width=169, min_height=99, max_width=169, max_height=99, width_inc=1, height_inc=1, min_aspect={0, 4294967295}, max_aspect={4294967295, 0}, preferred_orientation=15, confine_pointer=0, output_id=0}
[2017-01-19 10:05:42.808383] miral::Window Management: handle_window_ready window_info={name=gedit, type=menu, state=restored, restore_rect=((308, 178), (169, 99)), parent=Save As, children={}, min_width=169, min_height=99, max_width=169, max_height=99, width_inc=1, height_inc=1, min_aspect={0, 4294967295}, max_aspect={4294967295, 0}, preferred_orientation=15, confine_pointer=0, output_id=0}
[2017-01-19 10:05:42.808486] miral::Window Management: advise_focus_lost window_info={name=Save As, type=dialog, state=restored, restore_rect=((12, 24), (762, 559)), children={0x7f6740011410, gedit}, min_width=571, min_height=431, max_width=2147483647, max_height=2147483647, width_inc=1, height_inc=1, min_aspect={0, 4294967295}, max_aspect={4294967295, 0}, preferred_orientation=15, confine_pointer=0, output_id=0}
[2017-01-19 10:05:42.808664] miral::Window Management: advise_focus_gained window_info={name=gedit, type=menu, state=restored, restore_rect=((308, 178), (169, 99)), parent=Save As, children={}, min_width=169, min_height=99, max_width=169, max_height=99, width_inc=1, height_inc=1, min_aspect={0, 4294967295}, max_aspect={4294967295, 0}, preferred_orientation=15, confine_pointer=0, output_id=0}
[2017-01-19 10:05:42.808684] miral::Window Management: raise_tree root=gedit

It looks as though the initial placement requested "top_left=(308, 178), size=(169, 99)" is wrong. I'd expect something near the bottom of the "size=(762, 559)" of the parent "Save As" window. Is there a way to confirm where gtk-mir intends to place the surface?

Changed in miral:
status: New → Incomplete
Revision history for this message
William Hua (attente) wrote :

Committed as b09b69472b15bd27ec9da6cbb3a98073c05bb88a and 2088cc3395069a5ffa1ab0e7aee000113159919e

Changed in gtk:
status: New → Fix Committed
Changed in gtk+3.0 (Ubuntu):
assignee: nobody → William Hua (attente)
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Not happening with the latest gtk to land in zesty

Changed in miral:
status: Incomplete → Invalid
William Hua (attente)
Changed in gtk+3.0 (Ubuntu):
status: New → Fix Released
Changed in gtk:
status: Fix Committed → Fix Released
tags: added: unity8-desktop
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.