Bug 405103 - KWin fails to bring window to foreground
Summary: KWin fails to bring window to foreground
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager (show other bugs)
Version: 5.12.6
Platform: openSUSE Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-05 08:53 UTC by Dmitry
Modified: 2022-03-01 04:36 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
xprop output for AndroidStudio window (54.88 KB, text/plain)
2019-03-19 07:47 UTC, Dmitry
Details
xprop root with sleep (54.89 KB, text/plain)
2019-03-19 07:56 UTC, Dmitry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry 2019-03-05 08:53:38 UTC
SUMMARY
Window switching not working.

STEPS TO REPRODUCE
1. Open Konsole, Android Studio, Kate, two Firefox windows, YakYak, Dolphin, Telegram Desktop.
2. Switch between windows using mouse.
3. Sometimes I cannot bring inactive window to foreground.

OBSERVED RESULT
The activity's button in task panel was clicked, but no window appeared.
Only Alt-Tab helps in such situation.

EXPECTED RESULT
Restore window from background to foreground.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: OpenSUSE Leap 15.0
KDE Plasma Version: 5.12.6
KDE Frameworks Version: 5.45.0
Qt Version: 5.9.4

ADDITIONAL INFORMATION
Comment 1 Dmitry 2019-03-14 10:41:30 UTC
I think the problem is in the way how AndroidStudio and KDE interact with each other. Not sure if other apps have such problem.
Comment 2 David Edmundson 2019-03-18 13:21:39 UTC
So AndroidStudio is the only process that exhibits the behaviour?
Comment 3 Dmitry 2019-03-18 13:30:43 UTC
Yes, looks like it is a problem with AndroidStudio working within kwin.
Comment 4 David Edmundson 2019-03-18 13:42:30 UTC
Can you run "xprop" and click on the androidstudio window.

Also "xprop -root" after clicking the android window.

(you may need some clever combo of "sleep 5 && xprop --root" to avoid having konsole active)
Comment 5 Dmitry 2019-03-19 07:47:51 UTC
Created attachment 118902 [details]
xprop output for AndroidStudio window

Here it is (see the attachment).
Also I've found exact steps how to reproduce: just put AndroidStudio into foreground, then click on it's button inside the task manager (window will minimize), and than again click the button to unminimize. You will see AndroidStudio coming out but not into the top-level - other windows will stay on top of it.
Comment 6 Dmitry 2019-03-19 07:56:07 UTC
Created attachment 118903 [details]
xprop root with sleep
Comment 7 Dmitry 2019-03-28 13:22:53 UTC
Also I noticed the similar problem with notifications:
When I receive a message notification from WhatsApp Web running inside my Firefox (I keep two windows of Firefox opened), I click on the notification and KDE instead of bringing to foreground one of the Firefox windows (that contains WhatsApp Web) opens another app's window (Telegram).
Comment 8 Christoph Feck 2019-03-31 06:54:53 UTC
New information was added with comment #5 and comment #6; changing status for inspection.
Comment 9 galder 2022-01-30 15:49:41 UTC
Looks like an old issue. Setting it to needs more info.
Please try with a newer version(plasma 5.23.5) and if this is not an issue any more let us know.
Bugs placed into NEEDSINFO status will receive a reminder if the ticket:

    Is at least 15 days old
    Has not received any comment within 15 days

If a bug remains in NEEDSINFO for another 15 days with no comment, it will be closed as RESOLVED > WORKSFORME.
If a bug remains in NEEDSINFO with a comment provided within less than 15 days, no action will be taken (as it does not meet the above criteria).
Comment 10 Bug Janitor Service 2022-02-14 04:36:30 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 11 Bug Janitor Service 2022-03-01 04:36:42 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!