]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/minifram.cpp
Applied patch for stipppled brushes,
[wxWidgets.git] / src / gtk1 / minifram.cpp
index a749f18a8328afc8b20786acf4b9877995f3de38..9da9393c89f83f676204cbe20f67b835ff026f4f 100644 (file)
@@ -12,6 +12,9 @@
 #endif
 
 #include "wx/minifram.h"
+
+#if wxUSE_MINIFRAME
+
 #include "wx/dcscreen.h"
 
 #include "gtk/gtk.h"
@@ -160,6 +163,8 @@ static gint gtk_window_button_press_callback( GtkWidget *widget, GdkEventButton
 
     if (win->m_isDragging) return TRUE;
 
+    gdk_window_raise( win->m_widget->window );
+    
     gdk_pointer_grab( widget->window, FALSE,
                       (GdkEventMask)
                          (GDK_BUTTON_PRESS_MASK |
@@ -318,3 +323,5 @@ bool wxMiniFrame::Create( wxWindow *parent, wxWindowID id, const wxString &title
 
     return TRUE;
 }
+
+#endif