git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30103
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// e.g. in wxTaskBarIconAreaGTK
if (m_widget == NULL)
{
// e.g. in wxTaskBarIconAreaGTK
if (m_widget == NULL)
{
- GtkWindowType win_type = GTK_WINDOW_TOPLEVEL;
- if (style & wxFRAME_TOOL_WINDOW)
- win_type = GTK_WINDOW_POPUP;
-
if (GetExtraStyle() & wxTOPLEVEL_EX_DIALOG)
{
#ifdef __WXGTK20__
if (GetExtraStyle() & wxTOPLEVEL_EX_DIALOG)
{
#ifdef __WXGTK20__
- m_widget = gtk_window_new(win_type);
+ m_widget = gtk_window_new(GTK_WINDOW_TOPLEVEL);
+
+ if (style & wxFRAME_TOOL_WINDOW)
+ gtk_window_set_type_hint(GTK_WINDOW(m_widget),
+ GDK_WINDOW_TYPE_HINT_UTILITY);
+
// e.g. in wxTaskBarIconAreaGTK
if (m_widget == NULL)
{
// e.g. in wxTaskBarIconAreaGTK
if (m_widget == NULL)
{
- GtkWindowType win_type = GTK_WINDOW_TOPLEVEL;
- if (style & wxFRAME_TOOL_WINDOW)
- win_type = GTK_WINDOW_POPUP;
-
if (GetExtraStyle() & wxTOPLEVEL_EX_DIALOG)
{
#ifdef __WXGTK20__
if (GetExtraStyle() & wxTOPLEVEL_EX_DIALOG)
{
#ifdef __WXGTK20__
- m_widget = gtk_window_new(win_type);
+ m_widget = gtk_window_new(GTK_WINDOW_TOPLEVEL);
+
+ if (style & wxFRAME_TOOL_WINDOW)
+ gtk_window_set_type_hint(GTK_WINDOW(m_widget),
+ GDK_WINDOW_TYPE_HINT_UTILITY);
+