Skip to content

Commit 981717f

Browse files
committed
1 parent 67ba5b7 commit 981717f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

profiler/src/BackendWayland.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,8 @@ void Backend::Show()
11291129

11301130
void Backend::Run()
11311131
{
1132-
while( s_running && wl_display_dispatch( s_dpy ) != -1 )
1132+
timespec zero = {};
1133+
while( s_running && wl_display_dispatch_timeout( s_dpy, &zero ) != -1 )
11331134
{
11341135
if( tracy::s_config.focusLostLimit && !s_hasFocus ) std::this_thread::sleep_for( std::chrono::milliseconds( 50 ) );
11351136
s_redraw();

0 commit comments

Comments
 (0)