[Q?] Gdk event loop - GSource
- From: Erwann Chenede <Erwann Chenede ireland sun com>
- To: gtk-devel-list gnome org
- Subject: [Q?] Gdk event loop - GSource
- Date: Thu, 15 Feb 2001 14:25:50 +0000 (GMT)
Hi,
As part of the multiple display support, I need to modify the gdk event
to check for events on different X displays.
I was wondering if I need to add a new GSource for each new display
connection opened (as done in gdk/x11/gtkevents-x11.c:gdk_events_init)
and supply it with new GSourceFuncs.
or
Should I just do an g_source_add_poll with a new GPollFD containing
the new X display connection and modify the GSourceFuncs fcts :
gdk_event_prepare, gdk_event_check and gdk_event_dispatch
to check for a list of display instead of on display.
(I, personally, think this is the better solution).
Could anyone tell me, if I'm going in the right direction ?
Thanks in advance.
Erwann
[ I speak for myself, not for my employer. ]
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Erwann Chénedé, Sun Microsystems Ireland
Desktop Applications & Middleware Group
Phone : +353 1 8199031 xt: 19031
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]