Bug 445243

Summary: "Click raises active window" has no effect in wayland session
Product: [Plasma] kwin Reporter: Fushan Wen <qydwhotmail>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: brkayy987, nate
Priority: NOR Keywords: wayland
Version: 5.23.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
URL: https://invent.kde.org/plasma/kwin/-/merge_requests/1627
Latest Commit: Version Fixed In:
Sentry Crash Report:
Bug Depends on:    
Bug Blocks: 445244    

Description Fushan Wen 2021-11-10 04:18:23 UTC
Because KWin installs WindowActionInputFilter in wayland session. But the filter ignores the option.
Comment 1 Fushan Wen 2021-11-11 08:52:40 UTC
The expected behavior should be set in Window Actions.
Comment 2 Berkay 2022-02-02 10:04:24 UTC
(In reply to Fushan Wen from comment #1)
> The expected behavior should be set in Window Actions.

Hi, how should we exactly do this in that actions, I tried a couple of this, but none of them worked.
Comment 3 Fushan Wen 2022-02-02 10:38:56 UTC
(In reply to Berkay from comment #2)
> (In reply to Fushan Wen from comment #1)
> > The expected behavior should be set in Window Actions.
> 
> Hi, how should we exactly do this in that actions, I tried a couple of this,
> but none of them worked.

I just tried to change the settings and it still worked. Choose "Activate"/"Activate and pass click" in Left click.
Comment 4 Berkay 2022-02-02 10:58:15 UTC
"Window activation policy: Click to focus.
Focus stealing prevention: None.
Raising windows: Click raises active window - Checked.
Inactive Inner Window Actions:
Left click: Activate and pass click."
With these options, when I try to open a second pdf document, okular's window is not raised and document is opening in the background with a new tab. Same is true also when I try to open a link from thunderbird in a web browser.
I can provide anything you want about my system, I do not have any guesses about why this option is not working.
Comment 5 Fushan Wen 2022-02-02 11:04:50 UTC
(In reply to Berkay from comment #4)
> "Window activation policy: Click to focus.
> Focus stealing prevention: None.
> Raising windows: Click raises active window - Checked.
> Inactive Inner Window Actions:
> Left click: Activate and pass click."
> With these options, when I try to open a second pdf document, okular's
> window is not raised and document is opening in the background with a new
> tab. Same is true also when I try to open a link from thunderbird in a web
> browser.
> I can provide anything you want about my system, I do not have any guesses
> about why this option is not working.

That's a different bug then. I can also reproduce it.
Comment 6 Berkay 2022-02-02 11:53:27 UTC
Hım, so there has to be a some configuration then raising windows with clicking works. Could you please share the options  that you use?  I post the bug tomorrow.