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; }