wxGTK: add GDK display type to version info.
This commit is contained in:
parent
9114578004
commit
e603ba4f3e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue