Installing games via installer causes wrong window ordering/focusing

Whenever I install games on Lutris that uses an installer (an installer of any kind, doesn’t matter if it’s a GOG installer, a disc installation wizard or GamersGate download installer - this issue will almost always crops up.) and I switch focus to other windows at any time, my desktop’s ordering of Windows becomes completely borked. As in after installing a game via a GOG installer, as an example, if I have multiple windows open then every other window I selected before appears above it, almost as if the selected window now goes to the back of the order.

I also feel the need to clarify and provide further context for this problem: This issue has persisted for me ever since I began using Lutris two years ago and it has affected three desktops that I’ve used; which are Cinnamon as well Gnome and KDE Plasma in Wayland AND X11. Ever since I started using Plasma 6, the issue has gotten so much worse, because previously the issue would only happen so long as the installer is active and will then fix itself upon completion. But now the issue persists beyond that point, where shutting down anything relating to Lutris and even attempting to restart the desktop doesn’t solve the problem. The only way I can currently workaround it is by logging out of my session and logging back in, which makes this problem incredibly tedious when the issue occurs on almost every single game install done via installer. And the times when the issues doesn’t occur just further confounds me.

You can see the problem in action here, as you can see I have Lutris selected with me having highlighted and typed in the text field (image may appear blurry, had to scale it down to fit the file size), but Steam appears above Lutris despite not being the selected window.

The games I install via installers all work fine and said games end up installing properly, there’s no problem with that, it’s purely an issue regarding how this method of installing games somehow severely messes up the ordering of Windows during and after the installer does its work. I have been trying to search for help on this issue for a while but I honestly can’t find anything. I don’t think I’m the only person having this problem but it is really frustrating when I can’t find anything else regarding this problem that I’ve been having. It’s probably a case of me not knowing what terminology to use in my searches but this is an issue with Lutris that I am well and truly stumped on, I could really do with some insight into this.

All I know for sure is this issue definitely relates to Lutris in some way, as I have never encountered this problem with any other software, especially when it’s as consistent as this across many different desktop environments. Even using installers without Lutris doesn’t cause this issue to occur.

Any assistance or possible solution would be greatly appreciated.

Vulkan support: YES
Esync support: YES
Fsync support: YES
Wine installed: YES
Gamescope: YES
Mangohud: YES
Gamemode: YES
Steam: YES
In Flatpak: NO
[System]
OS: Garuda Linux Soaring BirdOfPrey
Arch: x86_64
Kernel: 6.10.0-zen1-2-zen
Desktop: KDE
Display Server: wayland
[CPU]
Vendor: AuthenticAMD
Model: AMD Ryzen 9 5900X 12-Core Processor
Physical cores: 12
Logical cores: 24
[Memory]
RAM: 62.7 GB
Swap: 62.7 GB
[Graphics]
Vendor: AMD
OpenGL Renderer: AMD Radeon RX 6800 XT (radeonsi, navi21, LLVM 18.1.8, DRM 3.57, 6.10.0-zen1-2-zen)
OpenGL Version: 4.6 (Compatibility Profile) Mesa 24.1.4-arch1.2
OpenGL Core: 4.6 (Core Profile) Mesa 24.1.4-arch1.2
OpenGL ES: OpenGL ES 3.2 Mesa 24.1.4-arch1.2
Vulkan Version: 1.3.279
Vulkan Drivers: AMD Radeon RX 6800 XT (RADV NAVI21) (1.3.278)