# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1128738535 0 # Node ID da86e1af8629b22edb32c0d11b31efdcc3e515f5 # Parent a86e9a781ba75b9dc70d4cad2847dc0b5821a334 (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT. Add debug code. diff -r a86e9a781ba7 -r da86e1af8629 src/xfaces.c --- a/src/xfaces.c Sat Oct 08 02:28:37 2005 +0000 +++ b/src/xfaces.c Sat Oct 08 02:28:55 2005 +0000 @@ -790,7 +790,10 @@ XGCValues *xgcv; { GC gc; + BLOCK_INPUT; gc = XCreateGC (FRAME_MAC_DISPLAY (f), FRAME_MAC_WINDOW (f), mask, xgcv); + UNBLOCK_INPUT; + IF_DEBUG (++ngcs); return gc; } @@ -799,7 +802,10 @@ struct frame *f; GC gc; { + BLOCK_INPUT; + IF_DEBUG (xassert (--ngcs >= 0)); XFreeGC (FRAME_MAC_DISPLAY (f), gc); + UNBLOCK_INPUT; } #endif /* MAC_OS */