2
0
mirror of https://github.com/wolfpld/tracy synced 2026-01-19 04:52:09 +00:00

Workaround libwayland regression.

ddd348da7e
This commit is contained in:
Bartosz Taudul
2025-08-25 17:08:21 +02:00
parent 67ba5b7727
commit 981717f3ef

View File

@@ -1129,7 +1129,8 @@ void Backend::Show()
void Backend::Run()
{
while( s_running && wl_display_dispatch( s_dpy ) != -1 )
timespec zero = {};
while( s_running && wl_display_dispatch_timeout( s_dpy, &zero ) != -1 )
{
if( tracy::s_config.focusLostLimit && !s_hasFocus ) std::this_thread::sleep_for( std::chrono::milliseconds( 50 ) );
s_redraw();