Corrected frame.cpp to recognise wxNO_BORDER properly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -252,7 +252,7 @@ gtk_frame_realized_callback( GtkWidget * WXUNUSED(widget), wxFrame *win )
|
|||||||
if (g_isIdle)
|
if (g_isIdle)
|
||||||
wxapp_install_idle_handler();
|
wxapp_install_idle_handler();
|
||||||
|
|
||||||
if ((win->m_miniEdge > 0) || (win->HasFlag(wxSIMPLE_BORDER)))
|
if ((win->m_miniEdge > 0) || (win->HasFlag(wxSIMPLE_BORDER)) || (win->HasFlag(wxNO_BORDER)))
|
||||||
{
|
{
|
||||||
/* This is a mini-frame or a borderless frame. */
|
/* This is a mini-frame or a borderless frame. */
|
||||||
gdk_window_set_decorations( win->m_widget->window, (GdkWMDecoration)0 );
|
gdk_window_set_decorations( win->m_widget->window, (GdkWMDecoration)0 );
|
||||||
|
@@ -252,7 +252,7 @@ gtk_frame_realized_callback( GtkWidget * WXUNUSED(widget), wxFrame *win )
|
|||||||
if (g_isIdle)
|
if (g_isIdle)
|
||||||
wxapp_install_idle_handler();
|
wxapp_install_idle_handler();
|
||||||
|
|
||||||
if ((win->m_miniEdge > 0) || (win->HasFlag(wxSIMPLE_BORDER)))
|
if ((win->m_miniEdge > 0) || (win->HasFlag(wxSIMPLE_BORDER)) || (win->HasFlag(wxNO_BORDER)))
|
||||||
{
|
{
|
||||||
/* This is a mini-frame or a borderless frame. */
|
/* This is a mini-frame or a borderless frame. */
|
||||||
gdk_window_set_decorations( win->m_widget->window, (GdkWMDecoration)0 );
|
gdk_window_set_decorations( win->m_widget->window, (GdkWMDecoration)0 );
|
||||||
|
Reference in New Issue
Block a user