Skip to content

Commit

Permalink
wayland_backend: Commit libdecor state before libdecor_frame_set_visi…
Browse files Browse the repository at this point in the history
…bility

Works around a libdecor bug.
  • Loading branch information
misyltoad committed Mar 10, 2024
1 parent 5570d67 commit 544e232
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wayland_backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,10 @@ namespace gamescope
{
m_pFrame = libdecor_decorate( m_pBackend->GetLibDecor(), m_pSurface, &s_LibDecorFrameInterface, this );

// We have to commit some libdecor state before calling libdecor_frame_set_visibility or it crashes.
// Oh great there's two bugs in this already.
CommitLibDecor( nullptr );

libdecor_frame_set_title( m_pFrame, "Gamescope" );
libdecor_frame_set_app_id( m_pFrame, "gamescope" );
// !!! Health Warning: This below call doesn't work on Plasma for borderless, and just makes the window not show up....
Expand Down

0 comments on commit 544e232

Please sign in to comment.