Bug 479493 - Titlebars of CSD windows can slide under a top panel with "drag to top of screen the maximize" setting disabled
Summary: Titlebars of CSD windows can slide under a top panel with "drag to top of scr...
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.27.10
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-07 02:55 UTC by Doug
Modified: 2024-01-12 17:01 UTC (History)
2 users (show)

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


Attachments
GTK4 app crosses over titlebar, Qt app will not (1.79 MB, video/webm)
2024-01-07 02:55 UTC, Doug
Details
video of apps maximizing when dragged to top of screen. (3.73 MB, video/webm)
2024-01-12 05:21 UTC, Doug
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Doug 2024-01-07 02:55:09 UTC
Created attachment 164726 [details]
GTK4 app crosses over titlebar, Qt app will not

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. install Firefox, Thunderbird, and Gnome Calculator (or other GTK 4 app)
2. open any of the above programs
3. move the window such that titlebar pushes up against a panel that is set to "Always Visible"

OBSERVED RESULT
the titlebar can move through the panel.

EXPECTED RESULT
The titlebar should hard stop at the panel- as it does with Qt apps

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: KDE Neon Unstable
(available in About System)
KDE Plasma Version: 5.91.90
KDE Frameworks Version: 5.248.0
Qt Version: 6.6.1

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2024-01-11 22:04:11 UTC
Do you have the "drag to top to maximize window" setting disabled? When it enabled, dragging anything up to the top of the screen--or its top-most panel--is supposed to maximize the window, but I don't see that happening in your screen recording.

I can reproduce the issue with that setting disabled, but not with it enabled.
Comment 2 Doug 2024-01-12 05:21:59 UTC
Created attachment 164836 [details]
video of apps maximizing when dragged to top of screen.
Comment 3 Doug 2024-01-12 05:25:03 UTC
(In reply to Nate Graham from comment #1)
> Do you have the "drag to top to maximize window" setting disabled? When it
> enabled, dragging anything up to the top of the screen--or its top-most
> panel--is supposed to maximize the window, but I don't see that happening in
> your screen recording.
> 
> I can reproduce the issue with that setting disabled, but not with it
> enabled.

I disable Maximize: Windows Dropped to Top Edge, as often I want to drag a window to the top edge and not maximize it and find that behavior pretty frustrating (there's already a maximize button right there, too!)  I just added a video showing how, on my computer, the issue as defined in the bug title persists either way, though the problem of the titlebar being covered by the panel is masked by the maximize behavior repositioning the titlebar in the correct location.
Comment 4 Vlad Zahorodnii 2024-01-12 10:31:11 UTC
This is issue is specific to client-side decorated windows. The work area constraining code in kwin relies on knowing the titlebar rect.