Set WM_CLASS class name as app display name
Gnome seems to use it as a fallback display name with X11. By default, it will be the capitalized program name, which is what GTK would set it to anyway.
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/frame.h"
|
#include "wx/frame.h"
|
||||||
|
#include "wx/app.h" // GetAppDisplayName()
|
||||||
#include "wx/icon.h"
|
#include "wx/icon.h"
|
||||||
#include "wx/log.h"
|
#include "wx/log.h"
|
||||||
#endif
|
#endif
|
||||||
@@ -629,6 +630,11 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent,
|
|||||||
|
|
||||||
m_title = title;
|
m_title = title;
|
||||||
|
|
||||||
|
#ifndef __WXGTK4__
|
||||||
|
// Gnome uses class as display name
|
||||||
|
gdk_set_program_class(wxTheApp->GetAppDisplayName().utf8_str());
|
||||||
|
#endif
|
||||||
|
|
||||||
// NB: m_widget may be !=NULL if it was created by derived class' Create,
|
// NB: m_widget may be !=NULL if it was created by derived class' Create,
|
||||||
// e.g. in wxTaskBarIconAreaGTK
|
// e.g. in wxTaskBarIconAreaGTK
|
||||||
if (m_widget == NULL)
|
if (m_widget == NULL)
|
||||||
|
Reference in New Issue
Block a user