[Bug 974627] New: Installer has no response with the shortcut pressed at the first screen with Qt 5.6
http://bugzilla.suse.com/show_bug.cgi?id=974627 Bug ID: 974627 Summary: Installer has no response with the shortcut pressed at the first screen with Qt 5.6 Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Installation Assignee: yast2-maintainers@suse.de Reporter: mlin@suse.com QA Contact: jsrain@suse.com Found By: --- Blocker: --- Created attachment 672167 --> http://bugzilla.suse.com/attachment.cgi?id=672167&action=edit installer at the first screen, pressed alt-n many times but without mouse clicked Qt 5.6 updates was pending in staging:E due to the installer has no response after pressed alt-n at the first screen[1], even more, all shortcuts doesn't work, F10, F9, akt-*, etc. I also tried it on physical machine and had the same result. I'm not so sure it's libyui or qt 5.6(or something else) problem though. Note that: 1) after mouse clicked, the shortcut back to work as normal. 2) in a "worked" installer, the Language combobox should be turned to green in the selected language at the first screen, this non-worked installer looks not. 3) I've switch to text console and killed y2base, then re-launch the installer, the shortcuts works afterward. I'll attach two y2logs - y2log_{before, after}, y2log_before is created at the first screen show up, and pressed alt-n many times but without mouse clicked; y2log_after is following the above but had mouse clicked and pressed alt-n afterward. HTH. [1] https://openqa.opensuse.org/tests/137674 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=974627
http://bugzilla.suse.com/show_bug.cgi?id=974627#c1
--- Comment #1 from Max Lin
http://bugzilla.suse.com/show_bug.cgi?id=974627
Max Lin
http://bugzilla.suse.com/show_bug.cgi?id=974627
Max Lin
http://bugzilla.suse.com/show_bug.cgi?id=974627
Antonio Larrosa
http://bugzilla.suse.com/show_bug.cgi?id=974627
http://bugzilla.suse.com/show_bug.cgi?id=974627#c2
--- Comment #2 from Hrvoje Senjan
http://bugzilla.suse.com/show_bug.cgi?id=974627
http://bugzilla.suse.com/show_bug.cgi?id=974627#c3
--- Comment #3 from Max Lin
There was one focus-related bugfix in Qt 5.6 that sounds it could be related http://code.qt.io/cgit/qt/qtbase.git/commit/ ?id=8eaf3352590690079735eda9fb872ec8c9c58f0a Dunno where/how YaST calls it's installation window. If we can try somewhere with the above commit reverted?
This commit should not included in 5.6.0 but 5.6.1. And actually I've tried a dud within this commit https://build.opensuse.org/package/show/home:mlin7442:branches:KDE:Qt5/libqt... , doesn't help(not getting better/worse) for this issue. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=974627
http://bugzilla.suse.com/show_bug.cgi?id=974627#c4
--- Comment #4 from Stefan Hundhammer
http://bugzilla.suse.com/show_bug.cgi?id=974627
http://bugzilla.suse.com/show_bug.cgi?id=974627#c5
--- Comment #5 from Max Lin
Does the window have the keyboard focus? (Click into the window to make sure)
I'm assumed "Click" here mean to click mouse button, if so, everything is *back to work(keyboard focus and shortcuts)* after a mouse click, but before a mouse click, keyboard shortcut does not work, even F10 key does not work too. And I've a question about keyboard focus, we've UI.SetFocus(Id(:language)) in yast2-installation, if I understand it correct, Language combobox will turn to green color, but it didn't when this issue happened.
Does the "Tab" key move the keyboard focus around from one widget to the next?
after a mouse click, yes. before a mouse click, nope. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=974627
Imobach Gonzalez Sosa
http://bugzilla.suse.com/show_bug.cgi?id=974627
http://bugzilla.suse.com/show_bug.cgi?id=974627#c6
--- Comment #6 from Stefan Hundhammer
http://bugzilla.suse.com/show_bug.cgi?id=974627
Stefan Hundhammer
http://bugzilla.suse.com/show_bug.cgi?id=974627
Ludwig Nussel
http://bugzilla.suse.com/show_bug.cgi?id=974627
Ludwig Nussel
http://bugzilla.suse.com/show_bug.cgi?id=974627
http://bugzilla.suse.com/show_bug.cgi?id=974627#c7
--- Comment #7 from Max Lin
http://bugzilla.suse.com/show_bug.cgi?id=974627
Stefan Behlert
http://bugzilla.suse.com/show_bug.cgi?id=974627
http://bugzilla.suse.com/show_bug.cgi?id=974627#c8
--- Comment #8 from Max Lin
Qt 5.6 updates were passed SP2 staging openqa check, that is surprised me, one of the difference I can see is SP2 staging iso had the beta warning dialog currently, thus we've made a openSUSE Staging iso within the beta warning(added BETA_VERSION productoption to kiwi file), and it really did work[1], so we're assumed when the beta warning dialog popup it *grabbed the proper focus*. Any idea why the first screen(without beta warning dialog) seems can not grab the proper focus? If you need any log, information or to do any kind of testing from me, please feel free let me know.
oh, and *the focus* here I was mean keyboard focus. In [1] it pressed "return" when found beta warning dialog popup. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=974627
http://bugzilla.suse.com/show_bug.cgi?id=974627#c10
Stefan Hundhammer
http://bugzilla.suse.com/show_bug.cgi?id=974627
Stefan Behlert
http://bugzilla.suse.com/show_bug.cgi?id=974627
Scott Reeves
http://bugzilla.suse.com/show_bug.cgi?id=974627
http://bugzilla.suse.com/show_bug.cgi?id=974627#c15
--- Comment #15 from Stefan Hundhammer
http://bugzilla.suse.com/show_bug.cgi?id=974627
http://bugzilla.suse.com/show_bug.cgi?id=974627#c16
Stefan Hundhammer
http://bugzilla.suse.com/show_bug.cgi?id=974627
http://bugzilla.suse.com/show_bug.cgi?id=974627#c17
Egbert Eich
http://bugzilla.suse.com/show_bug.cgi?id=974627
Stefan Hundhammer
http://bugzilla.suse.com/show_bug.cgi?id=974627
http://bugzilla.suse.com/show_bug.cgi?id=974627#c19
--- Comment #19 from Ludwig Nussel
http://bugzilla.suse.com/show_bug.cgi?id=974627
Björn Voigt
http://bugzilla.suse.com/show_bug.cgi?id=974627
http://bugzilla.suse.com/show_bug.cgi?id=974627#c20
--- Comment #20 from Max Lin
Reassigning to Qt maintainer.
Max, to put it short, the scenario is this:
With Qt 5.6, a new window does not seem to get the keyboard focus automatically. This behaviour seems to have changed between Qt 5.5 and Qt 5.6.
AFAIK we are using IceWM during installation (needs to be checked).
Dear, it's openSUSE, I'm not openSUSE Qt5 maintainer actually, but I don't mind it was assigned to me as we've same problem in SLE :) Anyway, I need any advice from YaST team, according to the result below I found, where is the right direction I should investigate to? 1) The issue is only happened on installer. I've tried pure qt application qdbusviewer from qt 5.6, didn't see either focus problem or shortcuts problem. 2) Seems the issue is only appears in *first time* launched installer, I've tried killed installer and relaunch it, the issue haven't appear in second time. 3) I assumed the working installer should set focus on the language list(a YQComboBox?) like [1], but with this issue, it doesn't[2]. 4) From what we learnt from Staging:E, this issue a bit random, not every time we lost focus. 5) I can reproduced the issue with Qt 5.6.0 Alpha1, but not on 5.5 branch from git, so probably something bad merged into 5.6 but not in 5.5 is the culprit caused this issue, not sure though. [1] https://openqa.opensuse.org/tests/175595/modules/welcome/steps/1 [2] https://openqa.opensuse.org/tests/174102/modules/installation_mode/steps/2 Any suggestion are welcome. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=974627
http://bugzilla.suse.com/show_bug.cgi?id=974627#c21
--- Comment #21 from Stefan Hundhammer
http://bugzilla.suse.com/show_bug.cgi?id=974627
http://bugzilla.suse.com/show_bug.cgi?id=974627#c23
--- Comment #23 from Stefan Hundhammer
http://bugzilla.suse.com/show_bug.cgi?id=974627
http://bugzilla.suse.com/show_bug.cgi?id=974627#c25
--- Comment #25 from Max Lin
This morning, Max discovered that this commit seems to be creating the problem: https://code.qt.io/cgit/qt/qtbase.git/commit/ ?id=8b0fcd871805465629c006fbf5867e0c8a6fdaf0
I narrowed it down to this one: https://build.opensuse.org/package/view_file/home:alarrosa:branches: bnc974672_560alpha1/libqt5-qtbase/fix.diff?expand=1
So qt 5.6.0 alpha1 shows the focus problem, but when applying that patch, yast gets the focus correctly.
Just to give more information, another version of that patch whose effect are exactly the same is here: https://build.opensuse.org/package/view_file/home:alarrosa:branches: bnc974672_560alpha1/libqt5-qtbase/fix. diff?expand=1&rev=3d6afd01b51b5e025ee25997e6d76ee3
I had a look at icewm to see why calling xcb_change_property to modify the _NET_WM_ICON_NAME property would change the focus but doesn't seem to make much sense. At least, I didn't find any reason yet.
Other than that, I also applied that small-revert-patch to Staging:E for verification, the test result on openQA[2] looks good. So I assume this is the right direction. According to [1]. it is relating to window manager, so icewm is questionable very likely. As Dominique is mentioned above, next step we'll try old icewm. [1] https://code.qt.io/cgit/qt/qtbase.git/commit/?id=8b0fcd871805465629c006fbf58... [2] https://openqa.opensuse.org/tests/overview?build=261.3&distri=opensuse&version=Staging%3AE&groupid=2 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=974627
http://bugzilla.suse.com/show_bug.cgi?id=974627#c26
--- Comment #26 from Stefan Hundhammer
http://bugzilla.suse.com/show_bug.cgi?id=974627
http://bugzilla.suse.com/show_bug.cgi?id=974627#c27
Fabian Vogt
http://bugzilla.suse.com/show_bug.cgi?id=974627
http://bugzilla.suse.com/show_bug.cgi?id=974627#c30
--- Comment #30 from Dominique Leuenberger
After much debugging of icewm, I took a different route, since I wondered what Yast was doing exactly in its startup. Finally, I dived a bit on yast sources and fixed the issue with this patch: https://github.com/libyui/libyui-qt/pull/54
icewm still has broken focus policies, but I think yast should request the focus when running fullscreen anyway.
Thank you Antonio! Great job! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=974627
http://bugzilla.suse.com/show_bug.cgi?id=974627#c32
--- Comment #32 from Denis Zyuzin
http://bugzilla.suse.com/show_bug.cgi?id=974627
http://bugzilla.suse.com/show_bug.cgi?id=974627#c33
Antonio Larrosa
participants (1)
-
bugzilla_noreply@novell.com