Bug#593308: xscreensaver: select instead of sleep in waiting for the reply

2010-08-20 Thread David Fries
On Wed, Aug 18, 2010 at 09:01:31PM -0700, Jamie Zawinski wrote: > This looks good, thanks! But I think you do need to go around the > loop multiple times, because there's technically no guarantee that > the response event we're polling for in XCheckIfEvent will be the > first event to come in. Th

Bug#593308: xscreensaver: select instead of sleep in waiting for the reply

2010-08-18 Thread Jamie Zawinski
This looks good, thanks! But I think you do need to go around the loop multiple times, because there's technically no guarantee that the response event we're polling for in XCheckIfEvent will be the first event to come in. There might be some event we don't care about that causes select() to r

Bug#593308: xscreensaver: select instead of sleep in waiting for the reply

2010-08-16 Thread David Fries
Package: xscreensaver Version: 5.11-1 Severity: normal Tags: patch When xscreensaver-command sends a command to the X server it will sleep for one second up to ten times waiting for the response from xscreensaver. In my experience it will normally check for events before the event has arrived an