From f79b48d9a8b1fb1a24d6a90c7d055cdbfc60e11b Mon Sep 17 00:00:00 2001 From: lbwtw Date: Mon, 4 Nov 2024 17:51:33 +0800 Subject: [PATCH] fix xdgsurface size is abnormal after output scaling --- examples/tinywl/helper.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/tinywl/helper.cpp b/examples/tinywl/helper.cpp index 6190cdb0..eb4b717d 100644 --- a/examples/tinywl/helper.cpp +++ b/examples/tinywl/helper.cpp @@ -55,6 +55,7 @@ #include #include #include +#include #include #include @@ -270,6 +271,7 @@ void Helper::init() m_compositor = qw_compositor::create(*m_server->handle(), 6, *m_renderer); qw_subcompositor::create(*m_server->handle()); qw_screencopy_manager_v1::create(*m_server->handle()); + qw_viewporter::create(*m_server->handle()); m_renderWindow->init(m_renderer, m_allocator); // for xwayland