Skip to content

Commit

Permalink
Merge branch 'graceful_exit' into graceful_exit_part2
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkautarch committed Dec 12, 2024
2 parents 0f5789f + a59d585 commit 8a1f5f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ namespace gamescope

bool IBackend::Set( IBackend *pBackend )
{
if ( s_pBackend ) {
GetBackend()->IBackend::~IBackend();
}
//FIXME: calling the backend's destructor sometimes hangs gamescope for wayland backend
//if ( s_pBackend ) {
// std::destroy_at(GetBackend());
//}

if ( pBackend )
{
Expand Down
5 changes: 2 additions & 3 deletions src/steamcompmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5951,15 +5951,14 @@ steamcompmgr_exit(std::optional<std::unique_lock<std::mutex>> lock = std::nullop
s_MuraCTMBlob[i] = nullptr;
}
}

if (lock)
lock->unlock();
gamescope::IBackend::Set( nullptr );

wlserver_lock();
wlserver_shutdown();
wlserver_unlock(false);

if (lock)
lock->unlock();
pthread_exit(NULL);
}

Expand Down

0 comments on commit 8a1f5f8

Please sign in to comment.