From e7f2dc00f776f75da139111795aa13b0a8a3128d Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Mon, 20 Jul 2009 03:32:21 +0000 Subject: [PATCH] Set wxAUI_MGR_RECTANGLE_HINT on Unix as Transparent and Venitian don't work here. I'm not sure if this is the fault of WindowMaker or GTK eventaully I'll try some other WMs and see what happens. This fixes floating windows and dragging them back/repositioning. Originally committed to SVN as r3184. --- contrib/assdraw/src/assdraw.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/assdraw/src/assdraw.cpp b/contrib/assdraw/src/assdraw.cpp index 680055d7c..351f7fa69 100644 --- a/contrib/assdraw/src/assdraw.cpp +++ b/contrib/assdraw/src/assdraw.cpp @@ -127,7 +127,11 @@ ASSDrawFrame::ASSDrawFrame( wxApp *app, const wxString& title, const wxPoint& po { m_app = app; m_mgr.SetManagedWindow(this); +#ifndef __UNIX__ m_mgr.SetFlags(m_mgr.GetFlags() | wxAUI_MGR_ALLOW_ACTIVE_PANE); +#else + m_mgr.SetFlags(wxAUI_MGR_ALLOW_FLOATING | wxAUI_MGR_ALLOW_ACTIVE_PANE | wxAUI_MGR_RECTANGLE_HINT); +#endif // set the frame icon SetIcon(wxICON(appico));