Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Getting the selection: Tk adds a delay?

9 views
Skip to first unread message

Georgios Petasis

unread,
Jun 4, 2012, 6:11:09 AM6/4/12
to
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
0 new messages