Bug 387913

Summary: PlasmaWindow::geometry() doesnt take into account the decorations
Product: [Plasma] kwin Reporter: Michail Vourlakos <mvourlakos>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Michail Vourlakos 2017-12-14 19:31:25 UTC
The geometry returned from

QRect KWayland::Client::PlasmaWindow::geometry () const

doesnt take into account the decoration of the window.
I dont know if this is considered a bug or the requested behavior.
We are using this in Latte in order to check if our top bar overlaps with a window. Because the window decoration isnt taken into account the top bar doesnt hide itself in Dodge Visibility modes.
Comment 1 Martin Flöser 2017-12-14 19:37:04 UTC
The window decoration is of course taken into account. Your bug must be somewhere else.

Reassigning to KWin as it has nothing to do with kwayland. Marking as invalid as KWin passes the geometry with the decoration to PlasmaWindow.
Comment 2 Michail Vourlakos 2017-12-14 19:49:39 UTC
This is in our part then...
Thanks, Martin