#if wxUSE_MINIFRAME
#include "wx/minifram.h"
+#include "wx/gtk/dcclient.h"
#ifndef WX_PRECOMP
#include "wx/settings.h"
wxClientDC dc(win);
-#if wxUSE_NEW_DC
- wxImplDC *impl = dc.GetImpl();
- wxGTKClientImplDC *client_impl = wxDynamicCast( impl, wxGTKClientImplDC );
- // Hack alert
- client_impl->m_window = widget->window;
-#else
- // Hack alert
- dc.m_window = widget->window;
-#endif
+ wxDCImpl *impl = dc.GetImpl();
+ wxClientDCImpl *gtk_impl = wxDynamicCast( impl, wxClientDCImpl );
+ gtk_impl->m_gdkwindow = widget->window; // Hack alert
if (style & wxRESIZE_BORDER)
{
// need to reset default size after changing m_gdkDecor
gtk_window_set_default_size(GTK_WINDOW(m_widget), m_width, m_height);
+ m_decorSize.Set(0, 0);
// don't allow sizing smaller than decorations
GdkGeometry geom;