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:
parent
facef8d301
commit
cf5205439c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue