Commit cf520543 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

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.
parent facef8d3
Pipeline #218982 passed with stage
in 13 minutes and 13 seconds
......@@ -146,7 +146,7 @@ void XdgShellOutput::handleConfigure(const QSize &size, XdgShellSurface::States
if (size.width() > 0 && size.height() > 0) {
setGeometry(geometry().topLeft(), size);
setGeometry(geometry().topLeft(), size * scale());
if (m_hasBeenConfigured) {
Q_EMIT sizeChanged(size);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment