Bug 394012

Summary: Falkon not raised even though it was allowed to steal focus
Product: [Plasma] kwin Reporter: Cristian Adam <cristian.adam>
Component: rulesAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: nowrep
Priority: NOR    
Version First Reported In: 5.12.5   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Falkon switching to foreground

Description Cristian Adam 2018-05-08 16:59:04 UTC
Created attachment 112511 [details]
Falkon switching to foreground

I have learned that Falkon won't behave like Firefox or Chromium from the bug #392805.

Therefore I have added a Window Rule for Falkon allowing it to steal the focus.

But in one case it didn't:
1. select other windows in foreground
2. click on "Show Desktop" applet
3. Open a URL.

I was expecting Falkon to be in foreground. But it didn't. It could be a bug in the "Show Desktop" applet / KWin.
Comment 1 Martin Flöser 2018-05-08 17:52:21 UTC
From the video we can see that falkon does not even try to activate it's window. If it would, KWin would either activate it or pass it the demands attention state. Neither happens as we can see in the taskbar.
Comment 2 David Rosca 2018-05-08 19:03:58 UTC
It does call QWidget::raise() + QWidget::activateWindow() in both cases on the video though.