New clipboard API for front ends, and textarea progress

Steve Fryatt lists at stevefryatt.org.uk
Sun Feb 24 22:34:41 GMT 2013


On 10 Jan, Michael Drake wrote in message
    <530c15f056tlsa at netsurf-browser.org>:

> In article <mpro.mgds7b08fs7pc01k4.lists at stevefryatt.org.uk>,
>    Steve Fryatt <lists at stevefryatt.org.uk> wrote:
> 
> > That shouldn't be too tricky to sort. I'm a little busy at present with
> > non-computery stuff, but will try to take a look in the next couple of
> > weeks if no-one else gets there first.
> 
> Thanks, that would be great.  All pastes happen as a result of passing
> KEY_PASTE to the core, so maybe it can request the clipboard when it
> passes that to the core, and then when the core calls gui_get_clipboard,
> maybe it will be easier?

Will gui_poll be called between KEY_PASTE being passed in to the core and
gui_get_clipboard getting called in return?  This would potentially have to
happen several times -- and the required number could vary.

If not, is it safe for the front end to go and make calls to its own
gui_poll before gui_get_clipboard returns? I'm not sure[1] if RISC OS
defines that a task won't get other poll codes (eg. redraws) during a
message exchange; if not, then there's the potential for the core to get
called for something else before gui_get_clipboard returns.


1. Does anyone reading know?

-- 
Steve Fryatt - Leeds, England             Wakefield Acorn & RISC OS Show
                                             Saturday 20 April 2013
http://www.stevefryatt.org.uk/           http://www.wakefieldshow.org.uk/



More information about the netsurf-dev mailing list