x11: Sync frame extents in X11 native pixels

Frame extents are written out over the wire they should be in X11 native
pixels.

i.e if we are using 200% scaling, and have X11 clients scale themselves
then from the point of view of the client reading the properties the
window decorations are twice the size as normal.

BUG: 471132
This commit is contained in:
David Edmundson 2023-06-26 17:06:24 +01:00
parent ad2f78f627
commit d8029e461e

View file

@ -1413,10 +1413,10 @@ void X11Window::detectNoBorder()
void X11Window::updateFrameExtents()
{
NETStrut strut;
strut.left = borderLeft();
strut.right = borderRight();
strut.top = borderTop();
strut.bottom = borderBottom();
strut.left = Xcb::toXNative(borderLeft());
strut.right = Xcb::toXNative(borderRight());
strut.top = Xcb::toXNative(borderTop());
strut.bottom = Xcb::toXNative(borderBottom());
info->setFrameExtents(strut);
}