Getting the selection: Tk adds a delay?



Hi all,

I have implemented my own code for getting an X11 selection, by registering a "SelectionNotify" event handler (through Tk_CreateEventHandler) on a window (Tk_MainWindow(interp)), and calling
XConvertSelection on the window.

What I observe is that there is a delay in getting a selection (from 1 sec to 5 sec that I timeout).

But if I click on my window (so as the application gets the input focus), I get the selection instantly.

Is Tk "lazy" in processing event, if the application does not have the input focus?

George
.



Relevant Pages

  • Re: From KDE to GNOME. Experiences, suggestions and comments
    ... In GNOME I had to first download the pics to the local machine, ... to unmount the device from there either. ... and it displays a window. ... Primary selection is not the clipboard. ...
    (GNOME)
  • Re: Explorer weirdness
    ... Shift-click selection behavior is buggy. ... Dragging a file from window A to window B sometimes hangs both ... Explorer recovers from these in maybe 10-20 seconds, ...
    (microsoft.public.windowsxp.general)
  • Re: Screen to clipboard?
    ... By document, I just mean the content of your window, whatever that may ... you need a way to represent the current selection. ... which I'll call the caret ... to the client area of your window). ...
    (comp.programming)
  • Star Fighter 3000 editors (recent improvements)
    ... editing window, to the icon bar icon, or another window. ... You can now force exclusive selection by holding Ctrl whilst clicking ... Selected colour bands now display the associated colour numbers ... The Home and End keys now act on the caret rather than just scrolling ...
    (comp.sys.acorn.games)
  • Re: VS.NET Add-in - context menus and selection text
    ... I am not sure if add-ins can get the selection of HTML windows using the ... Dim objWindow As Window ... The MZ-Tools all-in-one add-in, now for .NET: http://www.mztools.com ... I am extending context menus in the different windows. ...
    (microsoft.public.vsnet.ide)