backend/wayland: Fix computing output pixel size in xdg_toplevel.configure handler

Currently, we pass the logical size but setGeometry() expects the size
in device pixels. It fixes "kwin_wayland --scale 2" shrinking on every
configure event.
This commit is contained in:
Vlad Zahorodnii 2022-08-17 09:48:51 +03:00
parent facef8d301
commit cf5205439c

View file

@ -146,7 +146,7 @@ void XdgShellOutput::handleConfigure(const QSize &size, XdgShellSurface::States
Q_UNUSED(states);
m_xdgShellSurface->ackConfigure(serial);
if (size.width() > 0 && size.height() > 0) {
setGeometry(geometry().topLeft(), size);
setGeometry(geometry().topLeft(), size * scale());
if (m_hasBeenConfigured) {
Q_EMIT sizeChanged(size);
}