aboutsummaryrefslogtreecommitdiffstats
path: root/src/xfaces.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xfaces.c')
-rw-r--r--src/xfaces.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index df8dc15f022..2c5f729f6c5 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -790,7 +790,10 @@ x_create_gc (f, mask, xgcv)
790 XGCValues *xgcv; 790 XGCValues *xgcv;
791{ 791{
792 GC gc; 792 GC gc;
793 BLOCK_INPUT;
793 gc = XCreateGC (FRAME_MAC_DISPLAY (f), FRAME_MAC_WINDOW (f), mask, xgcv); 794 gc = XCreateGC (FRAME_MAC_DISPLAY (f), FRAME_MAC_WINDOW (f), mask, xgcv);
795 UNBLOCK_INPUT;
796 IF_DEBUG (++ngcs);
794 return gc; 797 return gc;
795} 798}
796 799
@@ -799,7 +802,10 @@ x_free_gc (f, gc)
799 struct frame *f; 802 struct frame *f;
800 GC gc; 803 GC gc;
801{ 804{
805 BLOCK_INPUT;
806 IF_DEBUG (xassert (--ngcs >= 0));
802 XFreeGC (FRAME_MAC_DISPLAY (f), gc); 807 XFreeGC (FRAME_MAC_DISPLAY (f), gc);
808 UNBLOCK_INPUT;
803} 809}
804 810
805#endif /* MAC_OS */ 811#endif /* MAC_OS */