Commit b755e6d9 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

Fix using --scale on kwin_wayland windowed mode

parent 3bb829d6
......@@ -83,7 +83,7 @@ void EglWaylandOutput::updateSize(const QSize &size)
void EglWaylandOutput::updateMode()
{
updateSize(m_waylandOutput->pixelSize());
updateSize(m_waylandOutput->geometry().size());
}
EglWaylandBackend::EglWaylandBackend(WaylandBackend *b)
......@@ -241,7 +241,8 @@ bool EglWaylandBackend::makeContextCurrent(EglWaylandOutput *output)
const QRect &v = output->m_waylandOutput->geometry();
qreal scale = output->m_waylandOutput->scale();
//The output is in scaled coordinates
const qreal scale = 1;
const QSize overall = screens()->size();
glViewport(-v.x() * scale, (v.height() - overall.height() + v.y()) * scale,
......
Markdown is supported
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