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:
parent
ad2f78f627
commit
d8029e461e
1 changed files with 4 additions and 4 deletions
|
@ -1413,10 +1413,10 @@ void X11Window::detectNoBorder()
|
||||||
void X11Window::updateFrameExtents()
|
void X11Window::updateFrameExtents()
|
||||||
{
|
{
|
||||||
NETStrut strut;
|
NETStrut strut;
|
||||||
strut.left = borderLeft();
|
strut.left = Xcb::toXNative(borderLeft());
|
||||||
strut.right = borderRight();
|
strut.right = Xcb::toXNative(borderRight());
|
||||||
strut.top = borderTop();
|
strut.top = Xcb::toXNative(borderTop());
|
||||||
strut.bottom = borderBottom();
|
strut.bottom = Xcb::toXNative(borderBottom());
|
||||||
info->setFrameExtents(strut);
|
info->setFrameExtents(strut);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue