wxGTK: add GDK display type to version info.

This commit is contained in:
Alex 2023-09-16 21:42:33 +03:00
parent 9114578004
commit e603ba4f3e
1 changed files with 13 additions and 0 deletions

View File

@ -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