Bug 485346 - Incorrect window get focused when using Intellij
Summary: Incorrect window get focused when using Intellij
Status: RESOLVED DUPLICATE of bug 478556
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 6.0.3
Platform: Solus Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-10 20:59 UTC by Odd
Modified: 2024-04-11 22:48 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Showing the windows behaving incorrectly (743.83 KB, image/gif)
2024-04-10 20:59 UTC, Odd
Details
System info (49.34 KB, image/png)
2024-04-10 21:00 UTC, Odd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Odd 2024-04-10 20:59:35 UTC
Created attachment 168368 [details]
Showing the windows behaving incorrectly

SUMMARY
When using the Java based IDE Intellij for a while, and then maximizing and unmaximizing the IDE, the window boundaries/sizes become incorrect, leading to other windows being focused when clicking inside the visible window.
See attached gif. Notice that I never click on the windows that gets focused. I click on seemingly one window yet another window registers the click and gets the focus. 
It's likely that the issue exists with all Idea's products, which are all Java based.
Not sure if it's enough to keep the IDE open for a while or if it also has to be used.

STEPS TO REPRODUCE
1. Open Intellij
2. Snap it to the right side of the screen
3. Use it for a while
4. Maximize Intellij
5. Unmaximize Intellij
6. Snap it to right side of the screen again

OBSERVED RESULT
Clicking inside a visible application causes another application to get the focus.

EXPECTED RESULT
The application/windows clicked should be focused.

SOFTWARE/OS VERSIONS
Windows: --
macOS: --
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3

ADDITIONAL INFORMATION
Closing Intellij restores the behavior of the apps/windows.
Comment 1 Odd 2024-04-10 21:00:17 UTC
Created attachment 168369 [details]
System info
Comment 2 Odd 2024-04-11 07:31:12 UTC
No need to snap the Intellij window, it happens simply from maximizing and unmaximizing Intellij, after a few min of usage in a maximized window.
(I only recently realized it is related to Intellij so I'm discovering the nuances of this bug).

Worth adding that doing `systemctl restart --user plasma-plasmashell` does not fix the issue while Intellij is open.
Only closing Intellij works.
Comment 3 fanzhuyifan 2024-04-11 16:54:16 UTC

*** This bug has been marked as a duplicate of bug 478556 ***
Comment 4 Victor Toofic 2024-04-11 22:48:30 UTC
Disabling and re-enabling the compositor fixes it for a moment. With the compositor off the issue does not happen.