tmop = &tmo;
}
+ /* Before sleep, dispatch draw events. */
+ if (context_acquired)
+ {
+ int pselect_errno = errno;
+ block_input ();
+ while (g_main_context_pending (context))
+ g_main_context_dispatch (context);
+ unblock_input ();
+ errno = pselect_errno;
+ }
+
fds_lim = max_fds + 1;
nfds = thread_select (pselect, fds_lim,
&all_rfds, have_wfds ? &all_wfds : NULL, efds,
xsettings_initialize (dpyinfo);
-#ifdef F_SETOWN
- fcntl (dpyinfo->connection, F_SETOWN, getpid ());
-#endif /* ! defined (F_SETOWN) */
-
- if (interrupt_input)
- init_sigio (dpyinfo->connection);
-
pgtk_selection_init();
pgtk_im_init (dpyinfo);