Is there an option to always bring an activated window to top?

There was a reddit thread where someone pointed out that when an window is activated by an application, it is not brought to the top. I’ve encountered this too with multiple applications and it always throws me for a loop initially.

I was wondering if this is just a missing option, but I couldn’t find anything related. I also couldn’t find anything in Window Rules other than always keeping an application on top, nothing about activation.

The easy way to reproduce this:

  1. Have a browser open like Firefox or Chrome and the and Dolphin open to the Downloads directory.
  2. Put the browser on top of Dolphin or full screen where Dolphin isn’t visible.
  3. After downloading a file, select the download icon and click the folder icon to open the Downloads folder.

While the Dolphin window in the Downloads directory is open and selected, and the task bar shows as much, it does not jump to the top to be visible.

I realize quickly what has happened and either tab to or select Dolphin, but I can imagine people getting confused by this since the default behavior on Mac and Win is for an activated window to be brought to the top by default.

I know this isn’t severe, it’s really more of a polish thing but definitely falls under usability and possibly even accessibility.

If it is a thing that should be fixed, I can write up a bug and put all the details in for it. Just wanted to check here first.

I had thought that setting “Focus stealing prevention = None” in “Window Behavior” would change this, but it doesn’t. Not sure whether that’s intended or not.

This is part of the so-called “Focus Stealing Prevention” and it can be configured in multiple levels.

On level “None” the window manager will allow windows to move themselves “to the top” and gain focus so what you are experiencing is one of the other levels.

The most common configuration only allows the application with the currently focused window to open a new window in that state.

If the new window is from a different application, e.g. a browser launching the file manager, then the former can pass a so-called “activation token” to the latter so it can request focus based on the first application’s “authority”.

It could be that this is not happening in your setup for some reason

On my system, “None” behaves the same as “Low” and all the other levels when I follow OP’s steps to reproduce. Whatever the level, I get exactly the same behaviour as OP with Dolphin remaining invisible until manually brought to the front.

I also tried the Focus Stealing Prevention on None and still the same behavior.

So if I’m understanding it, Firefox needs to send an “activation token” to Dolphin in order for it to come to the front if Focus Stealing is on anything but None? Or even when it is set to None?

The window is activated, it’s highlighted in the task manager, it’s just not brought to top.

Or is this possibly a bug, with the intended behavior actually being to be brought to the top?

1 Like

higginsdragon and pg-tips,

please post your details from kinfo

Operating System: Kubuntu 24.04
KDE Plasma Version: 5.27.12
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13
Kernel Version: 6.14.0-29-generic (64-bit)
Graphics Platform: X11
Processors: 28 × Intel® Core™ i7-14700K
Memory: 62.6 GiB of RAM
Graphics Processor: AMD Radeon RX 6800

when try to duplicate this with firefox and dolphin, as soon as i click on the folder icon in firefox, dolphin rises to the to the top and has focus

focus settings.

Mine:

Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.2
Kernel Version: 6.16.7-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700X 8-Core Processor
Memory: 32 GiB of RAM (31.3 GiB usable)
Graphics Processor: NVIDIA GeForce RTX 3060 Ti
Operating System: Arch Linux 
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.2
Kernel Version: 6.12.47-1-lts (64-bit)
Graphics Platform: Wayland
Processors: 16 × 11th Gen Intel® Core™ i7-11700K @ 3.60GHz
Memory: 64 GiB of RAM (62.7 GiB usable)
Graphics Processor: NVIDIA GeForce RTX 3080 

Yes. Browsers in particularly are still often shockingly bad about it.

In 6.4, yes, except for “Extreme”, none of the modes do anything. 6.5 makes the modes actually work.

1 Like

Doesn’t surprise me. VLC also does it, but by default it runs in Xwayland and even when you set it up for Wayland (which is a process in itself) it still doesn’t do it even when specified, so I’d just chalk that up to a VLC not doing it.

However, in Firefox, this happens in the task manager:

Screenshot_20250917_151702

So Dolphin is highlighted as if it’s activated. Or does Firefox also need to tell it to come to the top?

EDIT: The functionality works in KDE apps, so it doesn’t seem to be a general bug, they behave as they should.

Either way, I can definitely wait until 6.5 to see if the behavior changes. It’s not really critical, just one of those things.

The window being marked like that in the task manager just means Dolphin tried to activate itself but couldn’t - in this case because Firefox didn’t pass an activation token to Dolphin.