Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!masscomp!yoyodyne!black From: black@yoyodyne..westford.ccur.com (Sam Black) Newsgroups: comp.windows.x Subject: Re: How Do You Monitor Events For More Than 1 Display? Message-ID: <61503@masscomp.ccur.com> Date: 4 Dec 90 14:24:44 GMT References: <9012031508.AA01432@armory> Sender: news@masscomp.ccur.com Reply-To: black@westford.ccur.com (Sam Black) Organization: Concurrent Computer Corp. Westford MA. Lines: 16 One thing to be careful of (I just got caught by this yesterday) is to call XFlush(dpy) on each display before calling select. You can't just call XFlush after processing all events on a display, because an event on one display may cause activity on another display. - sam ------------------------------------------------------------------------------- Once you remove the absurdity from human existence, there isn't much left. __________ / _______/__ ...!{decvax,uunet}!masscomp!black /__/______/ / black@westford.ccur.com Concurrent /_________/ Computer Corporation -------------------------------------------------------------------------------