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.
master
Vlad Zahorodnii 2 years ago
parent facef8d301
commit cf5205439c

@ -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);
}

Loading…
Cancel
Save