From e603ba4f3ec133ce9a7d3c8f376cbc6f87aa8c5f Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 16 Sep 2023 21:42:33 +0300 Subject: [PATCH] wxGTK: add GDK display type to version info. --- common/build_version.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/common/build_version.cpp b/common/build_version.cpp index 107df3128e..21ddf6487c 100644 --- a/common/build_version.cpp +++ b/common/build_version.cpp @@ -175,6 +175,19 @@ wxString GetVersionInfoData( const wxString& aTitle, bool aHtml, bool aBrief ) << platform.GetPortIdName(); #ifdef __WXGTK__ + if( wxTheApp && wxTheApp->IsGUI() ) + { + aMsg << ", "; + + switch( wxGetDisplayInfo().type ) + { + case wxDisplayX11: aMsg << "X11"; break; + case wxDisplayWayland: aMsg << "Wayland"; break; + case wxDisplayNone: aMsg << "None"; break; + default: aMsg << "Unknown"; + } + } + aMsg << ", " << wxGetenv( "XDG_SESSION_DESKTOP" ) << ", " << wxGetenv( "XDG_SESSION_TYPE" ); #endif