[Qt5] QtCreator opening new project and then alt-tabing wrong title bar

Bug #1627879 reported by Brandon Schaefer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MirAL
Incomplete
Undecided
Unassigned

Bug Description

An issue in qtcreator when you open a qtcreator template (ctrl+n) then alt+tab. This causes an extra white title part (that is moveable) but you cannot do anything with it. It also seems to not have a name in the window management logs.

Mir on 0.25 in yakkety

To reproduce:
1) QT_QPA_PLATFORM=ubuntumirclient /usr/bin/qtcreator on a miral-shell
2) Press ctrl+n to open a template window
3) Press alt+tab

Expected:
The main qtcreator window to be the front most window

Result:
Some window without a name becomes focused and is about half the width of main window.

Window management log:
http://paste.ubuntu.com/23235511/

Tags: qt5
tags: added: qt5
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

I think the expectation is wrong:

[2016-09-26 15:27:14.571996] miral::Window Management: place_new_surface app_info={application=qtcreator, windows={, , Qt Creator}}, requested_specification={name=, type=dialog, top_left=(394, 272), size=(880, 520), output_id=0, state=restored, min_width=0, min_height=0, max_width=16777215, max_height=16777215, parent=Qt Creator, top_left=(394, 272)} -> {name=, type=dialog, top_left=(394, 282), size=(880, 520), output_id=0, state=restored, min_width=0, min_height=0, max_width=16777215, max_height=16777215, parent=Qt Creator, top_left=(394, 282)}

The template window dialog is modal, so the main window should not get focus on Alt-Tab,

That's what I observe. I don't see "Some window without a name". Admittedly I'm testing with lp:~alan-griffiths/miral/fix-1628033 - but if there are no other issues I'm satisfied to mark this as a dup.

Could you confirm or clarify?

Changed in miral:
status: New → Incomplete
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

That is 100% dup and what i was talking about. I just saw:

[2016-09-26 15:28:49.581234] miral::Window Management: advise_focus_gained window_info={name=, type=normal, state=restored, restore_rect=((320, 192), (640, 480)), children={0x7fd7fc003110}, min_width=0, min_height=0, max_width=16777215, max_height=16777215, width_inc=1, height_inc=1, min_aspect={0, 4294967295}, max_aspect={4294967295, 0}, preferred_orientation=15, confine_pointer=0, output_id=0}

name=,

Sounding like it didnt have a name for the focused window?

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.