Commit 8ff76c14 authored by Richard Hult's avatar Richard Hult Committed by Richard Hult

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
parent 17ccbe48
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
......
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment