From 4fbef0172960adba47ce28afbbfd392d1d98f8bb Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 16 Mar 2024 00:57:29 +0100 Subject: [PATCH] Trigger redraw when DPI changes. Previously the wayland surface was not updated, because there were no surface commits performed due to power saving routines. --- profiler/src/BackendWayland.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiler/src/BackendWayland.cpp b/profiler/src/BackendWayland.cpp index d9804379..b6cf11a6 100644 --- a/profiler/src/BackendWayland.cpp +++ b/profiler/src/BackendWayland.cpp @@ -220,6 +220,7 @@ static void RecomputeScale() { if( out.second->entered && out.second->scale > max ) max = out.second->scale; } + if( s_maxScale != max ) tracy::s_wasActive = true; s_maxScale = max; } @@ -644,6 +645,7 @@ static void SurfaceLeave( void*, struct wl_surface* surface, struct wl_output* o static void SurfacePreferredBufferScale( void*, struct wl_surface* surface, int32_t scale ) { + if( s_maxScale != scale ) tracy::s_wasActive = true; s_maxScale = scale; }