X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/7ffdf101fbb95fce1acba91af39c9df1f3c2a053..ff5dec5cd103f6a9b030d295b014f0ff81025def:/src/nsterm.m diff --git a/src/nsterm.m b/src/nsterm.m index a102267920..7bc82e9610 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -1517,19 +1517,19 @@ ns_defined_color (struct frame *f, char *name, XColor *color_def, int alloc, Return 0 if not found -------------------------------------------------------------------------- */ { - NSColor *temp; - int notFound = ns_get_color (name, &temp); - + NSColor *col; NSTRACE (ns_defined_color); - if (notFound) - return 0; - + BLOCK_INPUT; + if (ns_get_color (name, &col) != 0) /* Color not found */ + { + UNBLOCK_INPUT; + return 0; + } if (makeIndex && alloc) - color_def->pixel = ns_index_color(temp, f); /* [temp retain]; */ - - ns_query_color (temp, color_def, !makeIndex); - + color_def->pixel = ns_index_color (col, f); + ns_query_color (col, color_def, !makeIndex); + UNBLOCK_INPUT; return 1; } @@ -4173,8 +4173,6 @@ ns_term_shutdown (int sig) ns_send_appdefined (-2); } -extern void update_window_cursor (struct window *w, int on); - - (void)fd_handler: (NSTimer *) fdEntry /* -------------------------------------------------------------------------- Check data waiting on file descriptors and terminate if so