Skip to content

Commit

Permalink
WaylandBackend: Restore fullscreen state if returning from not being …
Browse files Browse the repository at this point in the history
…visible
  • Loading branch information
CakeKing64 authored and misyltoad committed Jul 21, 2024
1 parent 37cc4d3 commit 853cb98
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Backends/WaylandBackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1863,7 +1863,10 @@ namespace gamescope

void CWaylandBackend::UpdateFullscreenState()
{
if ( m_bDesiredFullscreenState != g_bFullscreen )
if ( !m_bVisible )
g_bFullscreen = false;

if ( m_bDesiredFullscreenState != g_bFullscreen && m_bVisible )
{
if ( m_bDesiredFullscreenState )
libdecor_frame_set_fullscreen( m_Planes[0].GetFrame(), nullptr );
Expand Down

0 comments on commit 853cb98

Please sign in to comment.