Bug 333595 - Global shortcuts are broken after closing windows
Summary: Global shortcuts are broken after closing windows
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (show other bugs)
Version: 4.11.7
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL: http://youtu.be/dvCPqS8mSpo
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-18 18:18 UTC by Rafal Lalik
Modified: 2020-12-22 04:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafal Lalik 2014-04-18 18:18:31 UTC
When closing or hiding any window which owns focus, the focus is not given to any other window or to desktop. Thus no key shortcuts are working, for example Alt+Tab will not work, also F12 which in my case is opening yakuake window will not work. To fix that one has to click with the mouse wherever in the screen that some window raises focus. Additionally before focus is fixed, pressing any alphanum key causes opening krunner window. Then every single hit of alphanum key is displayed in the popup as a single character - no string is build upon all hits.
I put demonstration on youtube which shows the problem.

In general I observed several variants of the behavior:
1) when window with focus us closed, no focus on another window is given, Alt+Tab is not working, pressing alphanum keys open krunner, only closing it by mouse (no ESC) is possible.
2) like in 1., but if no Alt+Tab is pressed then pressing alphanum keys opens krunner but every key hit is concatenated to the string in krunner's input. After krunner is on, Alt+Tab works again.
3) If focus is on another window that is closed (by mouse) then focus is OK.

This is very fresh installation of the KDE on fresh Gentoo system, but kde directory was copied from old system. Notwithstanding, after creating also new kde4 directory, problem is the same, On the old system with KDE-4.12.4 I've never noticed such behavior. But I also had there a 4.11.5 in the past and this problem was not noticeable at all.

Reproducible: Always

Steps to Reproduce:
1. Open two windows
2. Close one with mouse or Alt+F4
3. Try Alt+Tab - will not work (in my case).
4. Try any alpha-num key, krunner should appear, can be closed only with mouse.
Comment 1 Christoph Feck 2014-04-19 09:14:08 UTC
Is this a multiple screen setup (maybe even a hidden screen)? Please provide output of xrandr.

> Additionally before focus is fixed, pressing any alphanum key causes opening krunner window.

This would mean the desktop has focus. Why global shortcuts don't work in this case, I have no idea.
Comment 2 Thomas Lübking 2014-04-19 09:36:49 UTC
non-working global screenshots sound like 
- grabbed keyboard or
- zaphod (multihead, no xinerama) setup

please also post the output of
qdbus org.kde.kwin /KWin supportInformation

what happens in this regard if you "kquitapp plasma-desktop; kquitapp krunner"?
Comment 3 Rafal Lalik 2014-04-19 10:23:23 UTC
Indeed, I have double screen. I have my new Lenovo T440s with Nvidia (Optimus technology). It took me some efforts to make it working with my xorg.conf, I tried many solution from the web but they did not work very well.

I see that I have second screen, when I go with mouse to the right edge and I see that mouse is gone somewhere behind the edge. The second screen is also visible on the login screen after resume, I see Intel HD output as main screen, and in the LT corner smaller screen (lower resolution) of the second card. When typing password it is seen in both screens. I was planing also to fix that, but did not related this to KDE. Here is the screenshot: http://imagebin.org/306461

xrandr is not showing anything about this: http://paste.kde.org/phmlrgij2/ehkkmr
My screen resolution is 1920x1080

Here is KWin status info: http://paste.kde.org/p52nbrcf4/ud8u4n

I also made some tests, I opened a few windows and went with the mouse to the hidden screen and made LBM to put focus there. Then Alt+Tab is not working anymore on the main screen, but typing any letters results in normal behavior of krunner.
Comment 4 Thomas Lübking 2014-04-19 14:19:56 UTC
Sounds indeed much like a zaphod setup and all the issues kglobalaccel has with it
-> can you please attach your xorg.conf?

Focus should not be passed to the other head:
https://git.reviewboard.kde.org/r/107853/
broke interim and is supposed to be re-fixed by
https://git.reviewboard.kde.org/r/112595/

Might have re-broken again, but iirc this just happened because of tabbox invocation anyway.
Comment 5 Thomas Lübking 2014-04-19 14:20:55 UTC
PS: is

Screens
=======
Multi-Head: yes
Head: 0
Active screen follows mouse:  no
Number of Screens: 2
Screen 0 Geometry: 0,0,1920x1080
Screen 1 Geometry: 0,0,640x480

and the focus policy is reasonable.
Comment 6 Rafal Lalik 2014-04-19 23:06:50 UTC
My xorg.conf is here: http://paste.kde.org/pf3zzjkwz
Comment 7 Thomas Lübking 2014-04-20 11:31:53 UTC
We'd have to test whether multihead broke again then...
In general: do you have special need for that particular setup? (instead of running both screens on the same IGP/GPU what will eg. also allow you to move windows between the screens)
Comment 8 Thomas Lübking 2015-11-16 22:56:09 UTC
Smells like dupe of bug #344671
Comment 9 Thomas Lübking 2015-11-16 22:57:30 UTC
or rather bug #324782
Comment 10 Thiago Sueto 2020-11-22 04:15:04 UTC
Is this still reproducible somehow? I think I've never experienced this bug since I started using Plasma (so since 5.12), doesn't seem reproducible on Plasma from master either.
Comment 11 Bug Janitor Service 2020-12-07 04:34:01 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 12 Bug Janitor Service 2020-12-22 04:34:49 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!