[gtk] Save as dialog: dropdown menu surface positioned wrong
Bug #1655997 reported by
Gerry Boland
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
tags: | added: gtk-mir |
Changed in gtk: | |
assignee: | nobody → 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.
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} {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} 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} 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} 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} 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.800374] miral::Window Management: place_new_surface app_info=
[2017-01-19 10:05:42.800507] miral::Window Management: advise_new_window window_
[2017-01-19 10:05:42.808383] miral::Window Management: handle_window_ready window_
[2017-01-19 10:05:42.808486] miral::Window Management: advise_focus_lost window_
[2017-01-19 10:05:42.808664] miral::Window Management: advise_focus_gained window_
[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?