Re: [AD] MSG_IDLE in grabber and menus

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> Hm, there's a lot of possibilities by now:
>
> 1 - deprecate do_dialog and leave everything to the user, current code
> using do_dialog is out of luck (my patch for grabber went that way..)
>
> 2 - scan for d_yield_proc (as Eric suggested)
>
> [3 - add a D_IDLE flag (probably too late at this stage of the GUI)]
>
> 4 - call yield_timeslice in do_dialog while a menu is being displayed
> (and not in update_dialog)
>
> 4b - have a global gui_idle_behavior flag, just like gui_mouse_focus,
> which controls if 4 is done or not. Default would be on.
>
> 5 - have a global idle callback

My proposition corresponds to 2 + 4.  I think 4b is overkill.

-- 
Eric Botcazou




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/