summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorRichard Hult <richard@imendio.com>2008-05-08 17:23:08 +0000
committerRichard Hult <rhult@src.gnome.org>2008-05-08 17:23:08 +0000
commit8ff76c14cd62ad64d441dbc95b616e31cdebf3aa (patch)
tree326217bf01af09612ab92e9f73cb0f81053a9507 /gdk
parent17ccbe48f56fc3213bd2f1c06598b75592153b2a (diff)
downloadgtk+-8ff76c14cd62ad64d441dbc95b616e31cdebf3aa.tar.gz
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
Diffstat (limited to 'gdk')
-rw-r--r--gdk/quartz/gdkeventloop-quartz.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gdk/quartz/gdkeventloop-quartz.c b/gdk/quartz/gdkeventloop-quartz.c
index dcc8c9ca91..9c8b443878 100644
--- a/gdk/quartz/gdkeventloop-quartz.c
+++ b/gdk/quartz/gdkeventloop-quartz.c
@@ -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];