Bug 508525 - A thin gap between the window title bar and the window content
Summary: A thin gap between the window title bar and the window content
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: decorations (other bugs)
Version First Reported In: 6.4.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-20 17:05 UTC by lij1478@163.com
Modified: 2025-09-07 12:04 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screen recording (564.69 KB, video/webm)
2025-08-20 17:05 UTC, lij1478@163.com
Details
Screenshots of my settings in systemsettings(kde system settings) (env: lang English) (499.38 KB, application/zip)
2025-08-23 22:59 UTC, lij1478@163.com
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lij1478@163.com 2025-08-20 17:05:32 UTC
Created attachment 184289 [details]
Screen recording

(Translated into English by AI, with the original Chinese text appended at the end.)

SUMMARY
There is a thin gap between the window title bar and the window content; when clicking on this gap, the click action is passed through to the window behind it or the desktop.

STEPS TO REPRODUCE
1. Open a window.  
2. Carefully move the mouse to the gap between the window title bar and the window content.  
3. If you click the gap, the window behind it will be clicked.

If you're lucky, you'll accidentally hit this gap while clicking on the window title bar.
That's why I hate this bug.

OBSERVED RESULT
The click affects the window behind it.

EXPECTED RESULT
nothing happens
or it performs its intended action

SOFTWARE/OS VERSIONS
(kinfo)
Operating System: Arch Linux 
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1
Kernel Version: 6.16.1-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 18 × Intel® Core™ Ultra 5 125H
Memory: 32 GiB of RAM (30.8 GiB usable)
Graphics Processor: Intel® Arc

ADDITIONAL INFORMATION

Original text in Chinese:

【摘要】
窗口标题栏和窗口内容之间存在一条细缝,点击细缝时点击操作会传递到窗口后方的窗口或桌面

【复现步骤】
1. 打开窗口
2. 小心翼翼地将鼠标移动到窗口标题栏和窗口内容中间的缝隙
3. 如果点击缝隙,在窗口后方的窗口会被点击

如果你运气好的话,你点击窗口标题栏时会恰好点到这条缝隙。
这就是为什么我讨厌这个BUG。

【异常现象】
目标窗口后面的那个窗口被点击

【预期行为】 
无事发生,或者做它该做的事情
Comment 1 TraceyC 2025-08-21 21:07:09 UTC
Thank you for the bug report. I'm including a translation to Chinese at the end of my response, provided by an online translation site.

I am not able to reproduce this on git-master, or Fedora 42, using the Breeze Dark theme and following the steps in the video

1. Opened Chromium, loaded about:blank in a tab and added an element in the css and listener using dev tools:
element.style {
    cursor: no-drop;
}

listener
document.querySelector("body").addEventListener("click",()=> {alert("YOU CLICKED ME!")})

The style will make it so that when the cursor is over the blank tab body, it shows the "no click" icon
2. Opened KWrite in front of the blank browser tab about:blank
3. Moved the mouse in the area just above the Edit menu, to the left of the window title until the cursor shows the "no click" icon
3. Clicked

Observed: Mouse cursor did not change, the pop up was not triggered.

I noticed that in the video, there is also a small gap in the bottom status bar between "Tabs: 4" and the language to the left of it
What Global Theme are you using (In System Settings -> Global Theme?


感谢您提交的错误报告。我在回复末尾附上了由在线翻译网站提供的中文翻译版。

我无法在 git-master 或 Fedora 42 上使用 Breeze Dark 主题并按照视频中的步骤重现此问题。

1. 打开 Chromium,在标签页中加载 about:blank,并使用开发工具在 CSS 和监听器中添加一个元素:
element.style {
cursor: no-drop;
}

监听器
document.querySelector("body").addEventListener("click",()=> {alert("你点击了我!")})

该样式将使光标位于空白标签页主体上方时显示“禁止点击”图标。
2. 在空白浏览器标签页 about:blank 前打开 KWrite。
3. 将鼠标移动到“编辑”菜单正上方、窗口标题左侧的区域,直到光标显示“禁止点击”图标。
3. 点击。

观察结果:鼠标光标没有变化,弹窗没有触发。

我注意到在视频中,底部状态栏中“标签页数:4”与其左侧的语言之间也有一小段空白。
您使用的是什么全局主题(在系统设置 -> 全局主题中?)
Comment 2 lij1478@163.com 2025-08-23 22:59:56 UTC
Created attachment 184392 [details]
Screenshots of my settings in systemsettings(kde system settings) (env: lang English)

This may be an issue with the window decoration theme. When I switched to another theme, everything is ok.
这可能是窗口装饰主题的问题。当我换到其它主题之后,一切正常。

==============================

My Theme:
- Window Decorations: Breeze (Breeze 微风)    ←

- Global Theme: Breeze Dark (Breeze 微风深色)
- Application Style: Breeze (Breeze 微风)
- Plasma Style: Breeze (Follows color scheme)   (Breeze 微风/跟随配色方案)
  + Border: Theme Default (No window borders)
Comment 3 Bug Janitor Service 2025-09-07 03:48:14 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!