int style = win->GetWindowStyle();
-#ifndef __WXGTK3__
if (style & wxRESIZE_BORDER)
{
dc.SetBrush( *wxGREY_BRUSH );
dc.SetPen( *wxTRANSPARENT_PEN );
dc.DrawRectangle( win->m_width - 14, win->m_height-14, 14, 14 );
}
-#endif
if (win->m_miniTitle && !win->GetTitle().empty())
{
int y = (int)gdk_event->y;
int x = (int)gdk_event->x;
-#ifndef __WXGTK3__
if ((style & wxRESIZE_BORDER) &&
(x > win->m_width-14) && (y > win->m_height-14))
{
return TRUE;
}
-#endif
if (win->m_miniTitle && (style & wxCLOSE_BOX))
{
if (!win->m_isDragging)
{
-#ifndef __WXGTK3__
if (win->GetWindowStyle() & wxRESIZE_BORDER)
{
if ((x > win->m_width-14) && (y > win->m_height-14))
gdk_window_set_cursor(gtk_widget_get_window(widget), NULL);
win->GTKUpdateCursor(false);
}
-#endif
return TRUE;
}
void wxMiniFrame::DoGetClientSize(int* width, int* height) const
{
wxFrame::DoGetClientSize(width, height);
+
+ if (m_useCachedClientSize)
+ return;
+
if (width)
{
*width -= 2 * m_miniEdge;