[haiku-development] Re: B_ASYNCHRONOUS_CONTROLS

Axel Dörfler wrote:
> "Rene Gollent" <anevilyak@xxxxxxxxx> wrote:
> > Is there any known app that still relies on the old/backward compatible 
> > behavior that the documentation on B_ASYNCHRONOUS_CONTROLS refers to? I 
> > noticed Haiku's BSlider checks for this flag on its parent window, and 
> > if not enabled, relies on polling the mouse in MouseDown() to do 
> > tracking, and uses BMouseDown/Moved/Up like normal otherwise. Is there 
> > a good reason to leave this behavior, or can the async version be used 
> > by default?
> 
> BSlider is currently not the only control that checks for this flag. 
> Maybe we can always set it for now, and revert that if we actually run 
> into problems? :-)

To me it looks like the polling in MouseDown() which implementations use 
that are unaware of B_ASYNCHRONOUS_CONTROLS will work regardless. So we 
could just always set it. The problem with too many mouse messages in the 
queue, which we still have, applies even to the "new style" apps/windows.

Best regards,
-Stephan

Other related posts: