Trigger redraw when DPI changes.

Previously the wayland surface was not updated, because there were no
surface commits performed due to power saving routines.
This commit is contained in:
Bartosz Taudul 2024-03-16 00:57:29 +01:00
parent 8ebe62ed85
commit 4fbef01729
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

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