Bug 511162

Summary: Improve focus handling for Plasma applets when floating applets, focus follows mouse are enabled and focus delay is set to 0 ms.
Product: [Plasma] kwin Reporter: Abdul Aziz <abdulazizbdofficial>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: minor CC: kdedev, nate
Priority: NOR    
Version First Reported In: 6.5.0   
Target Milestone: ---   
Platform: CachyOS   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Abdul Aziz 2025-10-26 14:49:21 UTC
### **SUMMARY**

Improve focus handling for Plasma applets when *floating applets*, *focus follows mouse* are enabled  and *focus delay is set to 0 ms*.

---

### **STEPS TO REPRODUCE**

1. Enable **floating applets** in Plasma panel.
2. Open **System Settings → Window Management → Window Behavior → Focus**.
3. Enable **Focus follows mouse** and set **Delay focus by** to **0 ms**.
4. Open any applet from the panel.
5. Move the mouse cursor from the panel button toward the applet popup.

---

### **OBSERVED RESULT**

When moving the cursor from the panel button toward the applet, the pointer briefly passes over the *gap* between the panel and the floating applet popup.
Because *focus follows mouse* is active with *0 ms delay*, focus instantly switches to the desktop or any window beneath that gap.
This immediately closes the applet, making it very difficult or effectively impossible to interact with unless the user moves the cursor extremely quickly into the popup area before focus changes.

---

### **EXPECTED RESULT**

When an applet popup is opened, focus should remain logically associated with that applet and its originating panel button.
Crossing the small visual gap between the panel and popup should **not** cause a focus loss.
The applet should remain open and interactive under *focus follows mouse* with *0 ms delay*.

---

### **SOFTWARE/OS VERSIONS**

**Operating System:** CachyOS Linux
**KDE Plasma Version:** 6.5.0
**KDE Frameworks Version:** 6.19.0
**Qt Version:** 6.10.0
**Kernel Version:** 6.17.5-2-cachyos (64-bit)
**Graphics Platform:** Wayland

---

### **ADDITIONAL INFORMATION**

This only occurs when all three are active simultaneously:

* Floating applets enabled
* Focus follows mouse
* Focus delay set to 0 ms

If any one of these is disabled (for example, adding 100ms focus delay), the issue isn't very noticeable.
Comment 1 Nate Graham 2025-10-27 18:28:12 UTC
Not sure what you would expect to happen; the whole point of floating applets is that there's a gap between them and the panel. This setting therefore isn't compatible with the Focus Follows Mouse focus mode when specifying a delay of 0 miliseconds. These are three non-default settings you've enabled; you'll have to change one of them.
Comment 2 Abdul Aziz 2025-10-27 19:01:53 UTC
(In reply to Nate Graham from comment #1)
> Not sure what you would expect to happen; the whole point of floating
> applets is that there's a gap between them and the panel. This setting
> therefore isn't compatible with the Focus Follows Mouse focus mode when
> specifying a delay of 0 miliseconds. These are three non-default settings
> you've enabled; you'll have to change one of them.

To be honest, it's not a big deal at all I just encounterd the problem that's why I reported it