// All this is for Motif Window Manager "hints" and is supposed to be
// recognized by other WMs as well.
if ((style & wxCAPTION) != 0)
+ {
m_gdkDecor |= GDK_DECOR_TITLE;
- if ((style & wxSYSTEM_MENU) != 0)
+ }
+ if ((style & wxCLOSE_BOX) != 0)
{
m_gdkFunc |= GDK_FUNC_CLOSE;
+ }
+ if ((style & wxSYSTEM_MENU) != 0)
+ {
m_gdkDecor |= GDK_DECOR_MENU;
}
if ((style & wxMINIMIZE_BOX) != 0)
gint client_x, client_y, root_x, root_y;
gint width, height;
- if (method == wxX11_FS_GENERIC)
+ if (method != wxX11_FS_WMSPEC)
{
// don't do it always, Metacity hates it
m_fsSaveGdkFunc = m_gdkFunc;
}
else
{
- if (method == wxX11_FS_GENERIC)
+ if (method != wxX11_FS_WMSPEC)
{
// don't do it always, Metacity hates it
m_gdkFunc = m_fsSaveGdkFunc;