Comment 4 for bug 1671072

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

miral-shell gets to step 5 before there's a focus issue. Here's the problem:

[2017-03-16 14:14:51.298369] miral::Window Management: info_for -> Open File
[2017-03-16 14:14:52.798261] miral::Window Management: handle_modify_window window_info={name=Open File, type=dialog, state=restored, parent=Untitled , children={}, min_width=325, min_height=178, max_width=16777215, max_height=16777215, preferred_orientation=0xf, confine_pointer=0, output_id=0}, modifications={state=hidden}
[2017-03-16 14:14:52.798423] miral::Window Management: modify_window window_info={name=Open File, type=dialog, state=restored, parent=Untitled , children={}, min_width=325, min_height=178, max_width=16777215, max_height=16777215, preferred_orientation=0xf, confine_pointer=0, output_id=0}, modifications={state=hidden}
[2017-03-16 14:14:52.798490] miral::Window Management: advise_state_change window_info={name=Open File, type=dialog, state=restored, parent=Untitled , children={}, min_width=325, min_height=178, max_width=16777215, max_height=16777215, preferred_orientation=0xf, confine_pointer=0, output_id=0}, state=hidden
[2017-03-16 14:14:52.798560] miral::Window Management: advise_focus_gained window_info={name=Open File, type=dialog, state=restored, parent=Untitled , children={}, min_width=325, min_height=178, max_width=16777215, max_height=16777215, preferred_orientation=0xf, confine_pointer=0, output_id=0}
[2017-03-16 14:14:52.798609] miral::Window Management: raise_tree root=Open File
[2017-03-16 14:14:52.798658] miral::Window Management: advise_raise window_info={Untitled , Open File}
[2017-03-16 14:14:52.798712] miral::Window Management: advise_raise window_info={Open File}
[2017-03-16 14:14:52.798833] miral::Window Management: advise_focus_lost window_info={name=Open File, type=dialog, state=restored, parent=Untitled , children={}, min_width=325, min_height=178, max_width=16777215, max_height=16777215, preferred_orientation=0xf, confine_pointer=0, output_id=0}

It looks as though miral is not handling the hiding of the child dialog correctly.