Bug 387913 - PlasmaWindow::geometry() doesnt take into account the decorations
Summary: PlasmaWindow::geometry() doesnt take into account the decorations
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-14 19:31 UTC by Michail Vourlakos
Modified: 2017-12-14 19:49 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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