# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1317355510 0 # Node ID fc87309372eff97c818ccd5b2079e0f76560b030 # Parent 5c1a01c6384da8ededbf128d33a11acb9f1ac1a9 Same fix for GTK2/3 as I just committed for the Mac. diff -r 5c1a01c6384d -r fc87309372ef gtk/dw.c --- a/gtk/dw.c Fri Sep 30 04:00:38 2011 +0000 +++ b/gtk/dw.c Fri Sep 30 04:05:10 2011 +0000 @@ -8860,10 +8860,14 @@ if(!eve) return DW_ERROR_NON_INIT; + pthread_mutex_lock (&(eve->mutex)); + if(eve->posted) - return DW_ERROR_GENERAL; - - pthread_mutex_lock (&(eve->mutex)); + { + pthread_mutex_unlock (&(eve->mutex)); + return DW_ERROR_NONE; + } + if(timeout != -1) { struct timeval now; diff -r 5c1a01c6384d -r fc87309372ef gtk3/dw.c --- a/gtk3/dw.c Fri Sep 30 04:00:38 2011 +0000 +++ b/gtk3/dw.c Fri Sep 30 04:05:10 2011 +0000 @@ -7527,10 +7527,14 @@ if(!eve) return DW_ERROR_NON_INIT; + pthread_mutex_lock (&(eve->mutex)); + if(eve->posted) - return DW_ERROR_GENERAL; - - pthread_mutex_lock (&(eve->mutex)); + { + pthread_mutex_unlock (&(eve->mutex)); + return DW_ERROR_NONE; + } + if(timeout != -1) { struct timeval now;