Commit graph

222 commits

Author SHA1 Message Date
YAMAMOTO Mitsuharu
511a18d9e2 (x_draw_fringe_bitmap) [MAC_OSX]: Fix last change. 2007-06-23 01:53:51 +00:00
YAMAMOTO Mitsuharu
e855c5d81e (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
to scroll bar gap also when bitmap fills fringe.  Draw only foreground
if extended background has already been filled.
2007-06-23 01:50:22 +00:00
YAMAMOTO Mitsuharu
c6829f81ad (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
background to scroll bar gap.
(x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
(XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
scroll bars on frame edge.  Check fringe background extension.
Don't clear extended fringe background area.
(TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
(TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
(TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
[USE_MAC_TOOLBAR]: New macros.
(mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
(mac_handle_toolbar_event, mac_image_spec_to_cg_image)
(mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
(mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
[USE_MAC_TOOLBAR]: New functions.
(mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
manually if previous repositioning has failed.
(mac_handle_keyboard_event): Use precomputed event kind.
(XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
as tool bar item click.  Handle mouse movement over tool bar items.
2007-06-14 08:39:29 +00:00
YAMAMOTO Mitsuharu
7adf314352 (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
All callers changed so as not to call SetPortWindowPort.
(mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
(mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
mac_draw_string_common.
(mac_draw_image_string_qd): Likewise.
(mac_draw_string_common): Use them.  Add INLINE.
(XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
GetGlobalMouse.
(x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
and FRAME_OUTER_TO_INNER_DIFF_Y.
[TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
[USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
(x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
repositioning window to mac_handle_window_event.
(x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
saving window location to mac_handle_window_event
[USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
(install_menu_target_item_handler): Remove argument in extern.
[TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
Also accept command events.
(do_keystroke): New function created from XTread_socket.
(init_command_handler): Remove functions.
[TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
and save window location by kEventWindowShowing and kEventWindowHiding
handlers here.  Don't call next handler for window state change and
focus events.
(mac_handle_application_event, mac_handle_keyboard_event)
[TARGET_API_MAC_CARBON]: New functions.
(install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
kEventWindowShowing and kEventWindowHiding events.  Move installation
of mouse, font, text input and menu target item handlers to
install_application_handler.
(install_application_handler) [TARGET_API_MAC_CARBON]: New function.
(mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
New function.
(init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
Register it.
(XTread_socket) [TARGET_API_MAC_CARBON]: Consolidate
SendEventToEventTarget calls.  Use FRAME_OUTER_TO_INNER_DIFF_X and
FRAME_OUTER_TO_INNER_DIFF_Y.  Move application activation handler
to mac_handle_application_event.  Move keyboard handler to
mac_handle_keyboard_event.
(XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
(mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
init_command_handler.  Call install_application_handler.
2007-06-07 08:45:00 +00:00
YAMAMOTO Mitsuharu
3354caee46 Replace MenuHandle and GetMenuHandle with MenuRef and
GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
Replace ControlHandle with ControlRef.
(USE_CARBON_EVENTS): Remove.  Use TARGET_API_MAC_CARBON instead.
[MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
2007-06-06 08:33:15 +00:00
Dan Nicolaescu
3b8c0c70a7 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
* xdisp.c (next_element_from_buffer):
* window.c (delete_window):
* term.c (term_mouse_highlight):
* msdos.c (getdefdir):
* macterm.c (mac_create_bitmap_from_bitmap_data)
(init_font_name_table):
* fns.c (Fsxhash):
* data.c (Fmake_local_variable):
* ccl.c (ccl_driver): Likewise.
2007-05-26 17:21:14 +00:00
YAMAMOTO Mitsuharu
ea98d5a39a [USE_CARBON_EVENTS] (mac_handle_window_event):
Call mac_wakeup_from_rne on window size change.
2007-05-24 03:17:02 +00:00
YAMAMOTO Mitsuharu
1d5bcd55d5 (x_calc_absolute_position): Add BLOCK_INPUT around
mac_get_window_bounds.
2007-05-19 05:08:05 +00:00
YAMAMOTO Mitsuharu
e4f5123fce [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
dead key repeat and up events.
2007-05-16 08:15:44 +00:00
YAMAMOTO Mitsuharu
19ee09cc77 [!TARGET_API_MAC_CARBON] Include Displays.h.
(mac_screen_config_changed): New variable.
(mac_handle_dm_notification, init_dm_notification_handler)
(mac_get_screen_info): New functions.
[MAC_OS8] (main): Call init_dm_notification_handler.
(mac_initialize) [MAC_OSX]: Likewise.
(XTread_socket): Call mac_get_screen_info if screen config changed.
(mac_initialized): Make static.
(mac_initialize_display_info): Remove function.
(mac_term_init): Call mac_get_screen_info.  Add partial contents of
mac_initialize_display_info.
2007-04-13 08:14:23 +00:00
YAMAMOTO Mitsuharu
2a953eae53 [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event):
Use GetGlobalMouse instead of GetMouse and LocalToGlobal.
(mac_initialize_display_info) [MAC_OSX]: Use CGRectZero.
(mac_initialize_display_info) [!MAC_OSX]: dpyinfo->height and
dpyinfo->width are those of whole screen.
2007-04-12 08:12:00 +00:00
YAMAMOTO Mitsuharu
b51065cf2e (create_text_encoding_info_alist): Move assignments
outside predicate macros.
(mac_initialize_display_info) [MAC_OSX]: dpyinfo->height and
dpyinfo->width are those of whole screen.
2007-03-26 08:13:45 +00:00
YAMAMOTO Mitsuharu
6a0ace5b78 (note_mouse_movement): Don't return immediately for
LeaveNotify case.
2007-03-18 08:06:38 +00:00
YAMAMOTO Mitsuharu
5bc21f358c [USE_CARBON_EVENTS] (mac_handle_mouse_event): Ignore
mouse wheel movement on title bar or tool bar.
2007-03-10 06:26:03 +00:00
YAMAMOTO Mitsuharu
7a844a76e9 (XTset_vertical_scroll_bar) [MAC_OSX]: Don't show scroll
bar if its width is smaller than that of Aqua small scroll bar.
2007-03-07 08:13:47 +00:00
YAMAMOTO Mitsuharu
70385fe630 (x_scroll_bar_create, XTread_socket): Replace #if
USE_TOOLKIT_SCROLL_BARS with #ifdef USE_TOOLKIT_SCROLL_BARS.
(x_set_window_size): Call SET_FRAME_GARBAGED.  Clear window if
internal border width has changed.
2007-03-05 08:18:36 +00:00
YAMAMOTO Mitsuharu
4d5724e587 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag)
(x_set_toolkit_scroll_bar_thumb): Add bar->min_handle as margin to
scroll bar handle size in order to avoid `scroll backward' problem.
(x_scroll_bar_create, XTset_vertical_scroll_bar)
[USE_TOOLKIT_SCROLL_BARS]: Initialize bar->min_handle.
2007-02-24 02:43:04 +00:00
YAMAMOTO Mitsuharu
e6509087af (mac_display_info_for_display): Remove function.
(mac_flush_display_optional) [USE_CG_DRAWING]: New function.
(x_redisplay_interface) [USE_CG_DRAWING]: Set it as handler for
flush_display_optional.
[USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_press): New
argument MOUSE_POS.  All uses changed.  Set bar->dragging to
negative integer if scroll bar handle is pressed.
[USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_release): Negative
bar->dragging means scroll bar handle is not dragged.
[USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag): Get initial
offset of scroll bar handle from negative bar->dragging.
(XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Modifiers for scroll
bar click is compared against mapped one.  Set down/up_modifier
for scroll bar click event with control key.
2007-02-23 08:26:06 +00:00
YAMAMOTO Mitsuharu
d8506697cc (WINDOW_RESOURCE, TERM_WINDOW_RESOURCE): Remove macros.
[USE_MAC_TSM] (mac_handle_text_input_event): Remove unused variable
`mapped_modifiers'.
(XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Use Keyboard
Layout Services routines to get current Unicode keyboard layout.
2007-02-21 08:28:01 +00:00
YAMAMOTO Mitsuharu
5eafe967b4 (MakeMeTheFrontProcess) [MAC_OSX]: Remove function.
(mac_initialize) [MAC_OSX]: Call SetFrontProcess instead of
MakeMeTheFrontProcess.
2007-02-13 08:28:39 +00:00
Glenn Morris
4e6835dbc4 Add 2007 to copyright years. 2007-01-21 04:57:37 +00:00
YAMAMOTO Mitsuharu
c857519ff4 (x_free_frame_resources) [USE_CG_DRAWING]: Call
mac_prepare_for_quickdraw.
(quit_char, make_ctrl_char) [TARGET_API_MAC_CARBON]: Move externs
outside #ifdef MAC_OSX.
(mac_quit_char_key_p) [TARGET_API_MAC_CARBON]: Move function
outside #ifdef MAC_OSX.
(mac_check_bundle) [MAC_OSX]: Remove unused function.
2007-01-12 09:00:24 +00:00
YAMAMOTO Mitsuharu
a84cad70cc (XDrawLine): Rename from mac_draw_line_to_pixmap.
(XCreateGC): Change type of 2nd argument to void *.
(XFreeGC) [USE_CG_DRAWING && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
Fix last change.
(mac_to_emacs_modifiers): Change return type to int.
[USE_CARBON_EVENTS] (mac_event_to_emacs_modifiers): Likewise.
(mac_mapped_modifiers): New function.
(XTread_socket): Use it.
[USE_TSM] (mac_handle_text_input_event): Likewise.
(do_window_update) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
(mac_quit_char_modifiers, mac_quit_char_keycode) [MAC_OSX]: Remove
variables.
(mac_determine_quit_char_modifiers, init_quit_char_handler)
[MAC_OSX]: Remove functions.
(make_ctrl_char) [MAC_OSX]: Add extern.
(mac_quit_char_key_p) [MAC_OSX]: New function.
(mac_initialize) [MAC_OSX]: Don't call init_quit_char_handler.
2007-01-09 08:53:59 +00:00
YAMAMOTO Mitsuharu
e2d3b7e128 (CG_SET_FILL_COLOR_MAYBE_WITH_CGCOLOR)
(CG_SET_FILL_COLOR_WITH_GC_FOREGROUND)
(CG_SET_FILL_COLOR_WITH_GC_BACKGROUND)
(CG_SET_STROKE_COLOR_MAYBE_WITH_CGCOLOR)
(CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND): New macros.
(mac_cg_color_space_rgb) [USE_CG_DRAWING]: New variable.
(mac_cg_color_black) [USE_CG_DRAWING
&& MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New variable.
(init_cg_color) [USE_CG_DRAWING]: New function.
(mac_draw_line, mac_draw_rectangle) [USE_CG_DRAWING]: Use
CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND instead of CG_SET_STROKE_COLOR.
(mac_erase_rectangle, mac_clear_window, mac_draw_cg_image)
(mac_fill_rectangle, mac_draw_image_string_cg) [USE_CG_DRAWING]:
Use CG_SET_FILL_COLOR_WITH_GC_FOREGROUND or
CG_SET_FILL_COLOR_WITH_GC_BACKGROUND instead of CG_SET_FILL_COLOR.
(mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Likewise.
(XCreateGC, XFreeGC, XSetForeground, XSetBackground) [USE_CG_DRAWING
&& MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use gc->cg_fore_color	and/or
gc->cg_back_color.
(install_drag_handler, remove_drag_handler): Make extern.
(install_menu_target_item_handler): Add extern.
(install_window_handler): Call install_menu_target_item_handler.
[MAC_OS8] (main): Use MAC_EMACS_CREATOR_CODE instead of 'EMAx'.
(mac_initialize) [USE_CG_DRAWING]: Call init_cg_color.
2007-01-05 08:30:14 +00:00
YAMAMOTO Mitsuharu
0d36bf23ea (mac_query_char_extents) [USE_ATSUI]: Don't call
ATSUGetGlyphBounds if not necessary.
(Vmac_atsu_font_table) [USE_ATSUI]: Remove Variable.
(syms_of_macterm) [USE_ATSUI]: Don't defvar it.
(fm_get_style_from_font, atsu_find_font_from_family_name)
(atsu_find_font_family_name, mac_atsu_font_face_attributes)
[USE_ATSUI]: New functions.
(init_font_name_table) [USE_ATSUI]: Use atsu_find_font_family_name.
(mac_load_query_font) [USE_ATSUI]: Use atsu_find_font_from_family_name.
Don't get metrics for Latin-1 right half characters.
(mac_load_query_font): Don't load font if space width is not positive.
[TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event): Use
mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
(XTread_socket): Call SelectWindow when unfocused frame is clicked.
2006-12-15 08:05:35 +00:00
Juanma Barranquero
17cf2c3e23 (syms_of_macterm) <x-use-underline-position-properties,
x-underline-at-descent-line, mac-emulate-three-button-mouse>: Doc fix.
2006-12-10 23:16:11 +00:00
YAMAMOTO Mitsuharu
1d4412cd77 [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg)
[MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
&& MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
CGContextShowGlyphsWithAdvances is available.
2006-11-14 08:22:19 +00:00
YAMAMOTO Mitsuharu
369a7a37d8 (mac_create_bitmap_from_bitmap_data): Make variable
`swap_nibbles' static const.
(atsu_get_text_layout_with_text_ptr): Make variables `lengths',
`tags', `sizes', `values' static const.
(mac_draw_string_common): Make variables `context' static.  Make
variables `tags', `sizes', and `values' static const.
(pcm_get_status, x_detect_focus_change, x_scroll_bar_handle_click)
(xlfdpat_create, xlfdpat_block_match_1, xlfdpat_match)
(mac_to_x_fontname, parse_x_font_name, add_mac_font_name)
(mac_do_list_fonts, is_fully_specified_xlfd, do_grow_window)
(mac_store_event_ref_as_apple_event, mac_make_rdb): Add const
qualifier to arguments.
(xlfd_scalable_fields, keycode_to_xkeysym_table)
(fn_keycode_to_keycode_table): Make static const.
(mac_load_query_font): Make variables `tags', `sizes', `values',
`types', and `selectors' static const.
(mac_handle_command_event, mac_handle_window_event): Make
variables `names' and `types' static const.
(init_command_handler, install_window_handler): Make variables
`specs*' static const.
(mac_handle_font_event, mac_handle_text_input_event)
(mac_store_service_event): Make variables `names' and `types'
const.  Make variables `names_*' and `types_*' static const.
2006-10-31 08:32:56 +00:00
YAMAMOTO Mitsuharu
7c682cf194 (mac_query_char_extents): Don't return glyph ID if layout
adjustment is needed.
(mac_load_query_font): Check if width and height are positive.
2006-10-16 08:59:31 +00:00
YAMAMOTO Mitsuharu
bb420759ac (mac_draw_image_string, mac_draw_image_string_16): Add
argument OVERSTRIKE_P.
(mac_draw_string_common, mac_draw_image_string_cg): Likewise.
Support overstrike.
(mac_draw_string, mac_draw_string_16): Remove functions.
(x_draw_glyph_string_foreground): Use overstrike when needed.
(x_draw_composite_glyph_string_foreground): Likewise.  Use
mac_draw_image_string_16 instead of mac_draw_string_16.
(mac_load_query_font): Rename from XLoadQueryFont.  Take argument F
instead of DPY.  All uses changed.  Don't save/restore font.
2006-10-08 07:48:02 +00:00
YAMAMOTO Mitsuharu
444a42fd10 (mac_compute_glyph_string_overhangs, XLoadQueryFont)
[USE_CG_DRAWING]: Call mac_prepare_for_quickdraw before QDTextBounds.
2006-09-26 08:49:05 +00:00
YAMAMOTO Mitsuharu
cf2c68356b (x_underline_at_descent_line): New variable.
(syms_of_macterm): DEFVAR_BOOL it.
(x_draw_glyph_string): Use it.
(XLoadQueryFont): Calculate min_bounds.descent and max_bounds.descent.
2006-09-25 08:19:14 +00:00
YAMAMOTO Mitsuharu
20a1fc8bd9 (menubar_selection_callback): Remove extern.
(M_APPLE): Change to 234.
(do_apple_menu) [!TARGET_API_MAC_CARBON]: Make non-static.
(do_menu_choice): Remove function.
2006-09-19 03:18:46 +00:00
YAMAMOTO Mitsuharu
eee81f5d74 * macterm.c (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
Undo 2006-09-08 change.
2006-09-12 09:48:33 +00:00
Chong Yidong
92b2332318 * xdisp.c (mouse_autoselect_window): Removed.
(Vmouse_autoselect_window): New variable.  DEFVAR_LISP it.

	* dispextern.h (mouse_autoselect_window): Remove extern.
	(Vmouse_autoselect_window): Add extern.

	* macterm.c (XTread_socket): Test Vmouse_autoselect_window
	instead of mouse_autoselect_window.

	* msdos.c (dos_rawgetc): Likewise.

	* w32term.c (w32_read_socket): Likewise.

	* xterm.c (handle_one_xevent): Likewise.
2006-09-08 14:14:28 +00:00
YAMAMOTO Mitsuharu
bed0bf953c (mac_handle_origin_change, mac_handle_size_change)
(mac_get_ideal_size): New functions.
(x_set_offset, x_set_window_size, x_make_frame_visible)
(do_zoom_window, mac_handle_window_event, XTread_socket): Use them.
(install_window_handler, mac_handle_window_event)
[USE_CARBON_EVENTS]: Handle kEventWindowGetIdealSize and
kEventWindowBoundsChanged.
(XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Don't call
DragWindow.
2006-09-08 08:18:18 +00:00
YAMAMOTO Mitsuharu
750a6cf4b2 (install_window_handler, mac_handle_window_event)
[USE_CARBON_EVENTS]: Handle kEventWindowClose.
[USE_MAC_TSM] (mac_handle_text_input_event): Set modifiers for
ASCII keystroke event.
2006-09-05 01:03:33 +00:00
YAMAMOTO Mitsuharu
3e7424f76a (mac_draw_string_common, mac_query_char_extents)
(x_iconify_frame, XLoadQueryFont, install_window_handler)
(mac_handle_command_event, init_command_handler, init_menu_bar):
Use OSStatus instead of OSErr.
(x_free_frame_resources) [TARGET_API_MAC_CARBON]: Don't use
FRAME_FILE_NAME.
(x_query_font): Apply 2006-08-04 change for xterm.c.
(Qhi_command): Rename from Qhicommand.  All uses changed.
2006-08-27 07:09:52 +00:00
Kim F. Storm
30f2752356 (x_underline_at_descent_line): New variable.
(syms_of_xterm): DEFVAR_BOOL it.
(x_draw_glyph_string): Use it.
Draw underline and overline up to the end of line if the face
extends to the end of line.
2006-08-24 20:52:00 +00:00
Kim F. Storm
6c69392936 (x_draw_stretch_glyph_string): It is ok to draw a
stretch	glyph in left marginal areas on	header and mode lines.
2006-08-21 08:53:32 +00:00
YAMAMOTO Mitsuharu
d3f31bc589 (XTread_socket): Undo previous change. 2006-07-18 08:12:51 +00:00
YAMAMOTO Mitsuharu
1e53bd0e79 (keycode_to_xkeysym): Remove function. All uses now
directly lookup keycode_to_xkeysym_table.
[USE_MAC_TSM] (mac_handle_text_input_event): Don't construct
ASCII_KEYSTROKE_EVENT for non-zero keycode_to_xkeysym_table entries.
(XTread_socket): Use character codes to construct keypad key events.
(mac_initialize_display_info) [MAC_OSX]: Use CGDisplaySamplesPerPixel.
(x_delete_display): Apply 2006-07-04 change for xterm.c.
2006-07-18 03:00:19 +00:00
YAMAMOTO Mitsuharu
92289429a9 (Qeql): Add extern.
(x_set_mouse_pixel_position) [MAC_OSX]: Use CGWarpMouseCursorPosition.
(fm_style_face_attributes_alist) [USE_ATSUI]: New variable.
(syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
Change keys of Vmac_atsu_font_table from strings to numbers.
(fm_style_to_face_attributes) [USE_ATSUI]: New function.
(init_font_name_table) [USE_ATSUI]: Use it.
(saved_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
(syms_of_macterm) [USE_MAC_TSM]: Initialize and staticpro it.
[USE_MAC_TSM] (mac_tsm_resume): Restore script and language codes
only when saved_ts_script_language_on_focus coincides with
Vmac_ts_script_language_on_focus.
[USE_MAC_TSM] (mac_tsm_suspend): Save value of
Vmac_ts_script_language_on_focus to saved_ts_script_language_on_focus.
(XTread_socket) [USE_MAC_TSM]: Add Mac OS Classic support.
[USE_MAC_TSM] (mac_handle_text_input_event, init_tsm): Likewise.
2006-06-28 08:31:32 +00:00
YAMAMOTO Mitsuharu
b4c515960f (do_app_resume, do_app_suspend): Remove functions.
(mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: New functions.
(mac_handle_window_event, XTread_socket) [USE_MAC_TSM]: Use them.
(Vmac_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
(syms_of_macterm) [USE_MAC_TSM]: Defvar it.
(saved_ts_language, saved_ts_component) [USE_MAC_TSM]: New variables.
(mac_initialize_display_info) [MAC_OSX]: Use Quartz Display
Services functions to get size of main display in pixels.
2006-06-16 08:08:59 +00:00
YAMAMOTO Mitsuharu
67b5f80912 [USE_MAC_TSM] (mac_handle_text_input_event): Exclude 0x7f from ASCII range. 2006-06-06 03:27:33 +00:00
YAMAMOTO Mitsuharu
02236cbc8c (tsm_document_id) [USE_MAC_TSM]: New variable.
(Qtext_input, Qupdate_active_input_area, Qunicode_for_key_event)
[USE_MAC_TSM]: Likewise.
(syms_of_macterm) [USE_MAC_TSM]: Intern and staticpro them.
(Qbefore_string) [USE_MAC_TSM]: Add extern.
(do_app_resume, do_app_suspend) [USE_MAC_TSM]: Call
ActivateTSMDocument/DeactivateTSMDocument.
(mac_store_event_ref_as_apple_event): Call mac_post_mouse_moved_event.
(mac_handle_window_event) [USE_MAC_TSM]: Handle
kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
(mac_handle_text_input_event) [USE_MAC_TSM]: New function.
(install_window_handler) [USE_MAC_TSM]: Install it.  Register
kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
(keycode_to_xkeysym_table): Add entry for f16.
(XTread_socket) [USE_MAC_TSM]: Set/reset read_socket_inev
before/after passing keystroke event to toolbox dispatcher.
(init_tsm) [USE_MAC_TSM]: New function.
(mac_initialize) [USE_MAC_TSM]: Call it.
(Vmac_ts_active_input_overlay) [USE_MAC_TSM]: New defvar.
2006-06-03 02:34:11 +00:00
YAMAMOTO Mitsuharu
36f0107c0b (mac_handle_visibility_change): Set buf.arg to Qnil.
(XTread_socket): Remove obsolete comment.
2006-06-01 09:37:18 +00:00
YAMAMOTO Mitsuharu
b71c381c18 (font_panel_shown_p) [USE_MAC_FONT_PANEL]: New variable.
(mac_font_panel_visible_p, mac_show_hide_font_panel)
[USE_MAC_FONT_PANEL]: New functions.
[USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Return
immediately if font panel is not visible.
2006-05-29 09:43:03 +00:00
Kim F. Storm
e8f6b0db19 (x_draw_stretch_glyph_string): Fix problems with invisible
cursor and erasing cursor on partially visible stretch glyph on left.
(x_draw_hollow_cursor): Compute x via get_phys_cursor_geometry.
2006-05-27 22:37:39 +00:00
YAMAMOTO Mitsuharu
a16ac62430 (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]:
Fix last change.  Don't map `fn' modifier if pressed with F1 ... F12.
2006-05-24 08:08:43 +00:00