mirror of
https://github.com/wolfpld/tracy.git
synced 2026-11-16 20:55:57 +00:00
Workaround libwayland regression.
https://gitlab.freedesktop.org/wayland/wayland/-/commit/ddd348da7ea0889056843cf252729185d306b7b8
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user