Skip to content

Commit c4612cd

Browse files
committed
Fix wxGLCanvasEGL::IsShownOnScreen() under Wayland
Don't use m_readyToDraw in it, as the canvas is still shown even when it's not ready to draw yet, and use m_wlSubsurface instead as it is destroyed when the window is unmapped. See wxWidgets#23899. (cherry picked from commit cf44a87)
1 parent 7df5cf5 commit c4612cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unix/glegl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ bool wxGLCanvasEGL::IsShownOnScreen() const
851851
case wxDisplayX11:
852852
return GetXWindow() && wxGLCanvasBase::IsShownOnScreen();
853853
case wxDisplayWayland:
854-
return m_readyToDraw && wxGLCanvasBase::IsShownOnScreen();
854+
return m_wlSubsurface && wxGLCanvasBase::IsShownOnScreen();
855855
case wxDisplayNone:
856856
break;
857857
}

0 commit comments

Comments
 (0)