diff options
| author | YAMAMOTO Mitsuharu | 2006-02-10 08:22:12 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2006-02-10 08:22:12 +0000 |
| commit | b465419fdfd093b1d59fdea95d990a8775f34b98 (patch) | |
| tree | 149a25b824287efd31c1b6a1c155ad349f6b4ac0 | |
| parent | 7d53d6786c13720fd51ebd17507b218915371ef0 (diff) | |
| download | emacs-b465419fdfd093b1d59fdea95d990a8775f34b98.tar.gz emacs-b465419fdfd093b1d59fdea95d990a8775f34b98.zip | |
(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.
| -rw-r--r-- | src/macterm.c | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/src/macterm.c b/src/macterm.c index 9051196f2fc..69181958cf0 100644 --- a/src/macterm.c +++ b/src/macterm.c | |||
| @@ -1026,12 +1026,15 @@ static int cg_text_anti_aliasing_threshold = 8; | |||
| 1026 | static void | 1026 | static void |
| 1027 | init_cg_text_anti_aliasing_threshold () | 1027 | init_cg_text_anti_aliasing_threshold () |
| 1028 | { | 1028 | { |
| 1029 | Lisp_Object val = | 1029 | int threshold; |
| 1030 | Fmac_get_preference (build_string ("AppleAntiAliasingThreshold"), | 1030 | Boolean valid_p; |
| 1031 | Qnil, Qnil, Qnil); | ||
| 1032 | 1031 | ||
| 1033 | if (INTEGERP (val)) | 1032 | threshold = |
| 1034 | cg_text_anti_aliasing_threshold = XINT (val); | 1033 | CFPreferencesGetAppIntegerValue (CFSTR ("AppleAntiAliasingThreshold"), |
| 1034 | kCFPreferencesCurrentApplication, | ||
| 1035 | &valid_p); | ||
| 1036 | if (valid_p) | ||
| 1037 | cg_text_anti_aliasing_threshold = threshold; | ||
| 1035 | } | 1038 | } |
| 1036 | 1039 | ||
| 1037 | static int | 1040 | static int |
| @@ -5299,7 +5302,10 @@ mac_define_frame_cursor (f, cursor) | |||
| 5299 | struct frame *f; | 5302 | struct frame *f; |
| 5300 | Cursor cursor; | 5303 | Cursor cursor; |
| 5301 | { | 5304 | { |
| 5302 | SetThemeCursor (cursor); | 5305 | struct mac_display_info *dpyinfo = FRAME_MAC_DISPLAY_INFO (f); |
| 5306 | |||
| 5307 | if (dpyinfo->x_focus_frame == f) | ||
| 5308 | SetThemeCursor (cursor); | ||
| 5303 | } | 5309 | } |
| 5304 | 5310 | ||
| 5305 | 5311 | ||
| @@ -5837,7 +5843,7 @@ x_raise_frame (f) | |||
| 5837 | if (f->async_visible) | 5843 | if (f->async_visible) |
| 5838 | { | 5844 | { |
| 5839 | BLOCK_INPUT; | 5845 | BLOCK_INPUT; |
| 5840 | SelectWindow (FRAME_MAC_WINDOW (f)); | 5846 | BringToFront (FRAME_MAC_WINDOW (f)); |
| 5841 | UNBLOCK_INPUT; | 5847 | UNBLOCK_INPUT; |
| 5842 | } | 5848 | } |
| 5843 | } | 5849 | } |
| @@ -5851,7 +5857,7 @@ x_lower_frame (f) | |||
| 5851 | if (f->async_visible) | 5857 | if (f->async_visible) |
| 5852 | { | 5858 | { |
| 5853 | BLOCK_INPUT; | 5859 | BLOCK_INPUT; |
| 5854 | SendBehind (FRAME_MAC_WINDOW (f), nil); | 5860 | SendBehind (FRAME_MAC_WINDOW (f), NULL); |
| 5855 | UNBLOCK_INPUT; | 5861 | UNBLOCK_INPUT; |
| 5856 | } | 5862 | } |
| 5857 | } | 5863 | } |
| @@ -5964,7 +5970,6 @@ x_make_frame_visible (f) | |||
| 5964 | 5970 | ||
| 5965 | f->output_data.mac->asked_for_visible = 1; | 5971 | f->output_data.mac->asked_for_visible = 1; |
| 5966 | 5972 | ||
| 5967 | SelectWindow (FRAME_MAC_WINDOW (f)); | ||
| 5968 | CollapseWindow (FRAME_MAC_WINDOW (f), false); | 5973 | CollapseWindow (FRAME_MAC_WINDOW (f), false); |
| 5969 | ShowWindow (FRAME_MAC_WINDOW (f)); | 5974 | ShowWindow (FRAME_MAC_WINDOW (f)); |
| 5970 | } | 5975 | } |
| @@ -9581,6 +9586,8 @@ XTread_socket (sd, expected, hold_quit) | |||
| 9581 | /* So people can tell when we have read the available input. */ | 9586 | /* So people can tell when we have read the available input. */ |
| 9582 | input_signal_count++; | 9587 | input_signal_count++; |
| 9583 | 9588 | ||
| 9589 | ++handling_signal; | ||
| 9590 | |||
| 9584 | #if USE_CARBON_EVENTS | 9591 | #if USE_CARBON_EVENTS |
| 9585 | toolbox_dispatcher = GetEventDispatcherTarget (); | 9592 | toolbox_dispatcher = GetEventDispatcherTarget (); |
| 9586 | 9593 | ||
| @@ -10221,6 +10228,7 @@ XTread_socket (sd, expected, hold_quit) | |||
| 10221 | } | 10228 | } |
| 10222 | #endif | 10229 | #endif |
| 10223 | 10230 | ||
| 10231 | --handling_signal; | ||
| 10224 | UNBLOCK_INPUT; | 10232 | UNBLOCK_INPUT; |
| 10225 | return count; | 10233 | return count; |
| 10226 | } | 10234 | } |