Skip to content

Commit

Permalink
fix weird wlserver_is_lock_held() assert
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkautarch committed Sep 6, 2024
1 parent bc0e276 commit 81f4303
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/wlserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1699,6 +1699,7 @@ static std::unique_ptr<gamescope::GamescopeInputServer> g_InputServer;
bool wlserver_init( void ) {
assert( wlserver.display != nullptr );

wlserver_lock();
wl_list_init(&pending_surfaces);

wlserver.wlr.multi_backend = wlr_multi_backend_create( wlserver.event_loop );
Expand Down Expand Up @@ -1861,11 +1862,13 @@ bool wlserver_init( void ) {
wl_display_flush_clients(wlserver.display);
if (wl_event_loop_dispatch(wlserver.event_loop, -1) < 0) {
wl_log.errorf("wl_event_loop_dispatch failed\n");
wlserver_unlock();
return false;
}
}
}


wlserver_unlock();
return true;
}

Expand Down

0 comments on commit 81f4303

Please sign in to comment.