Mercurial > emacs
changeset 68770:4eb8cd48f0ef
(mac_define_frame_cursor): Don't change pointer shape
for unfocused frame.
(x_raise_frame): Call BringToFront instead of SelectWindow.
(x_lower_frame): Use NULL instead of nil.
(x_make_frame_visible): Don't call SelectWindow.
(XTread_socket): Increment handling_signal at the start, decrement
it at the end.
[USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
---|---|
date | Fri, 10 Feb 2006 08:22:12 +0000 |
parents | 10a43eea776e |
children | a49c90df9eb9 |
files | src/macterm.c |
diffstat | 1 files changed, 18 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/src/macterm.c Fri Feb 10 08:21:47 2006 +0000 +++ b/src/macterm.c Fri Feb 10 08:22:12 2006 +0000 @@ -1026,12 +1026,15 @@ static void init_cg_text_anti_aliasing_threshold () { - Lisp_Object val = - Fmac_get_preference (build_string ("AppleAntiAliasingThreshold"), - Qnil, Qnil, Qnil); - - if (INTEGERP (val)) - cg_text_anti_aliasing_threshold = XINT (val); + int threshold; + Boolean valid_p; + + threshold = + CFPreferencesGetAppIntegerValue (CFSTR ("AppleAntiAliasingThreshold"), + kCFPreferencesCurrentApplication, + &valid_p); + if (valid_p) + cg_text_anti_aliasing_threshold = threshold; } static int @@ -5299,7 +5302,10 @@ struct frame *f; Cursor cursor; { - SetThemeCursor (cursor); + struct mac_display_info *dpyinfo = FRAME_MAC_DISPLAY_INFO (f); + + if (dpyinfo->x_focus_frame == f) + SetThemeCursor (cursor); } @@ -5837,7 +5843,7 @@ if (f->async_visible) { BLOCK_INPUT; - SelectWindow (FRAME_MAC_WINDOW (f)); + BringToFront (FRAME_MAC_WINDOW (f)); UNBLOCK_INPUT; } } @@ -5851,7 +5857,7 @@ if (f->async_visible) { BLOCK_INPUT; - SendBehind (FRAME_MAC_WINDOW (f), nil); + SendBehind (FRAME_MAC_WINDOW (f), NULL); UNBLOCK_INPUT; } } @@ -5964,7 +5970,6 @@ f->output_data.mac->asked_for_visible = 1; - SelectWindow (FRAME_MAC_WINDOW (f)); CollapseWindow (FRAME_MAC_WINDOW (f), false); ShowWindow (FRAME_MAC_WINDOW (f)); } @@ -9581,6 +9586,8 @@ /* So people can tell when we have read the available input. */ input_signal_count++; + ++handling_signal; + #if USE_CARBON_EVENTS toolbox_dispatcher = GetEventDispatcherTarget (); @@ -10221,6 +10228,7 @@ } #endif + --handling_signal; UNBLOCK_INPUT; return count; }