Bug 503616 - Java Progress Dialog with no title looks odd in Overview
Summary: Java Progress Dialog with no title looks odd in Overview
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-overview (other bugs)
Version First Reported In: 6.3.4
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-01 14:58 UTC by postix
Modified: 2025-05-14 06:34 UTC (History)
2 users (show)

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


Attachments
Screenshot (263.56 KB, image/png)
2025-05-01 14:58 UTC, postix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2025-05-01 14:58:32 UTC
Created attachment 180851 [details]
Screenshot

SUMMARY

Updated IntelliJ PyCharm, which shows a progress dialog in Java.
The dialog also appears in the Overview effect.

- The icon is huge compared to the dialog
- The icon covers the dialog
- There's empty title label with background

I've expect
- the icon to appear over the progressbar w/o covering it and be relatively smaller
- To use the main application's name as a title or to hide the empty caption area


SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20250427
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Kernel Version: 6.14.4-1-default (64-bit)
Graphics Platform: Wayland
Scaling: 2.0
Comment 1 Nate Graham 2025-05-02 14:58:23 UTC
The first two are basically intentional; very tiny windows will simply have this happen; not much of a way around it without braking the logic for everything else or else making the display inconsistent (both of which would generate their own bug reports).

The third issue is probably an issue of the dialog not setting a proper window title. It definitely should.

We could make the Overview effect not try to show a title bubble at all for such windows. But really, this is a bug in the app. Every window should have a title set. I'd recommend you report this to the PyCharm developers.
Comment 2 postix 2025-05-02 15:03:46 UTC
>  very tiny windows will simply have this happen; not much of a way around it without braking the logic for everything else
I assume the effect tries to scale everything with the same scale factor, but why not set a reasonable lower size to avoid super tiny useful windows?

> We could make the Overview effect not try to show a title bubble at all for such windows. But really, this is a bug in the app. 
You will always find some app, which may mis-behave. I'm might going to report it downstream, but to catch them all, I'd not show the bubble in the first place for any app w/o a correct title or try to infer the title from parent process if possible.
Comment 3 Nate Graham 2025-05-02 16:54:24 UTC
Yeah, that's reasonable.
Comment 4 Bug Janitor Service 2025-05-08 18:11:16 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/7595
Comment 5 Nate Graham 2025-05-09 13:27:45 UTC
Git commit cac2e66214fe8e219a9249e00970fbde288957ab by Nate Graham.
Committed on 08/05/2025 at 18:08.
Pushed by ngraham into branch 'master'.

plugins/WindowHeapDelegate: don't show caption rect with empty string

This looks weird. Instead, when the window was naughty and didn't set a
title, don't display the caption rect at all.
FIXED-IN: 6.4.0

M  +2    -2    src/plugins/private/qml/WindowHeapDelegate.qml

https://invent.kde.org/plasma/kwin/-/commit/cac2e66214fe8e219a9249e00970fbde288957ab
Comment 6 Blazer Silving 2025-05-14 06:34:41 UTC
Git commit 77e54d3bbae95e1efa34362342436e0cada5a484 by Blazer Silving, on behalf of Nate Graham.
Committed on 13/05/2025 at 18:56.
Pushed by vladz into branch 'master'.

plugins/WindowHeapDelegate: don't show caption rect with empty string

This looks weird. Instead, when the window was naughty and didn't set a
title, don't display the caption rect at all.
FIXED-IN: 6.4.0

M  +2    -2    src/plugins/private/qml/WindowHeapDelegate.qml

https://invent.kde.org/plasma/kwin-x11/-/commit/77e54d3bbae95e1efa34362342436e0cada5a484