diff options
author | Richard Hult <richard@imendio.com> | 2008-05-08 17:23:08 +0000 |
---|---|---|
committer | Richard Hult <rhult@src.gnome.org> | 2008-05-08 17:23:08 +0000 |
commit | 8ff76c14cd62ad64d441dbc95b616e31cdebf3aa (patch) | |
tree | 326217bf01af09612ab92e9f73cb0f81053a9507 /gdk | |
parent | 17ccbe48f56fc3213bd2f1c06598b75592153b2a (diff) | |
download | gtk+-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.c | 9 |
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]; |