Kirix Support Forums

jason's fix

Please post any wxAUI patches or modifications you've created here. Thanks!

jason's fix

Postby HzD_Byte on Sun Sep 10, 2006 6:26 am

bwilliams, please apply jason's fix:

I believe I have a fix.

Change the check for actionDragFloatingPane in
void wxFrameManager::OnMotion(wxMouseEvent& event) to:

else if (m_action == actionDragFloatingPane)
{
if (m_action_window == NULL)
setAction(actionNone);
else {
wxPoint pt = m_frame->ClientToScreen(event.GetPosition());
m_action_window->Move(pt.x - m_action_offset.x,
pt.y - m_action_offset.y);
}
}

Add the check to set m_action_window to NULL in
void wxFrameManager::Update()

// reduce flicker
p.window->SetSize(1,1);

if (p.frame->IsShown())
p.frame->Show(false);

if (m_action_window == p.frame)
m_action_window = NULL;
HzD_Byte
Registered User
 
Posts: 15
Joined: Sun Feb 12, 2006 1:03 am

Postby Ben on Wed Sep 13, 2006 9:32 am

Hello,

Are you using the wxWidgets CVS version of wxAUI? This bug was fixed in a slightly different way. If you are using wxAUI 0.9.x, one way to fix the problem is jason's patch, but ultimately, that's not what was causing the race condition (at least for me).

If you are still having problems, I'll apply the patch as it is listed here.

Thanks,
Ben
User avatar
Ben
Kirix Support Team
 
Posts: 525
Joined: Mon Dec 19, 2005 6:29 am

Postby jason on Tue Sep 19, 2006 8:24 pm

In what CVS file revision was this fixed?
jason
Registered User
 
Posts: 5
Joined: Sun Sep 03, 2006 2:14 pm

Postby Ben on Fri Sep 22, 2006 2:14 pm

Hi there,

In framemanager.cpp version 1.46. It turned out that calling Show() was firing window move events which were causing this problem.

Did the problem go away for you after upgrading?

Best,
Ben
User avatar
Ben
Kirix Support Team
 
Posts: 525
Joined: Mon Dec 19, 2005 6:29 am

Postby HzD_Byte on Thu Sep 28, 2006 8:55 am

bwilliams, i'm using CVS version...

this bug is still here :(
(when moving panes, sometimes)

and a new bug: sometimes there is no way to dock floating pane.. (this thing appeared recently)
HzD_Byte
Registered User
 
Posts: 15
Joined: Sun Feb 12, 2006 1:03 am

Problem still exists

Postby jason on Sat Sep 30, 2006 10:23 am

I've just compiled from a 2006-09-30 CVS snapshot, and the problem is still there. I can repeatedly produce the problem by creating an app with a single window and docking it back and forth between two opposing sides of the application's main window.


I do not think the fix I gave is correct since with it floating panes sometimes stop reponding to mouse drags.

I will work on this more today.
jason
Registered User
 
Posts: 5
Joined: Sun Sep 03, 2006 2:14 pm

Postby tierra on Thu Oct 19, 2006 7:07 pm

Just replying to reference a related patch on the wxWidgets bug tracker: #1575571
Regards,
Bryan Petty
tierra
Registered User
 
Posts: 4
Joined: Tue Dec 20, 2005 4:49 pm

Postby Ben on Tue Oct 31, 2006 2:56 am

Hi all,

I just fixed the problem. Let me know if it still happens for you, though I don't think it will.

Best,
Ben
User avatar
Ben
Kirix Support Team
 
Posts: 525
Joined: Mon Dec 19, 2005 6:29 am

Return to wxAUI Patches & Modifications