Only set the fake fd's revents, not the first one. Fixes bug #531056,

2008-05-08  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkeventloop-quartz.c (poll_func): Only set the fake
	fd's revents, not the first one. Fixes bug #531056, spotted by
	Yevgen Muntyan.

svn path=/trunk/; revision=20086
This commit is contained in:
Richard Hult 2008-05-08 17:23:08 +00:00 committed by Richard Hult
parent 17ccbe48f5
commit 8ff76c14cd
2 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-05-08 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkeventloop-quartz.c (poll_func): Only set the fake
fd's revents, not the first one. Fixes bug #531056, spotted by
Yevgen Muntyan.
2008-05-07 Tor Lillqvist <tml@novell.com>
* gtk-zip.sh.in: Add gtk-update-icon-cache.exe and more man pages

View File

@ -295,7 +295,14 @@ poll_func (GPollFD *ufds, guint nfds, gint timeout_)
if (event)
{
ufds[0].revents = G_IO_IN;
for (i = 0; i < nfds; i++)
{
if (ufds[i].fd == -1)
{
ufds[i].revents = G_IO_IN;
break;
}
}
current_event = [event retain];