diff options
| author | Miles Bader | 2007-06-11 01:00:07 +0000 |
|---|---|---|
| committer | Miles Bader | 2007-06-11 01:00:07 +0000 |
| commit | 67f3ad67ee317226cb5d1bb139de0cfd883fdc5e (patch) | |
| tree | 58a0e1bea7a1d8728fd32e6127a44434e7eac006 /src/macfns.c | |
| parent | d17cf4eb2024cf54e4a216312184665094ee3df4 (diff) | |
| parent | 2d715b39ea1c89066f469405d065dd1a6631d28e (diff) | |
| download | emacs-67f3ad67ee317226cb5d1bb139de0cfd883fdc5e.tar.gz emacs-67f3ad67ee317226cb5d1bb139de0cfd883fdc5e.zip | |
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 781-792)
- Update from CVS
- Merge from gnus--rel--5.10
- Merge from emacs--rel--22
* emacs--rel--22 (patch 33-41)
* gnus--rel--5.10 (patch 226-228)
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--multi-tty--0--patch-21
Diffstat (limited to 'src/macfns.c')
| -rw-r--r-- | src/macfns.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/macfns.c b/src/macfns.c index 4c454399afb..cd02552df7a 100644 --- a/src/macfns.c +++ b/src/macfns.c | |||
| @@ -217,9 +217,6 @@ void x_explicitly_set_name P_ ((struct frame *, Lisp_Object, Lisp_Object)); | |||
| 217 | void x_set_menu_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 217 | void x_set_menu_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object)); |
| 218 | void x_set_title P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 218 | void x_set_title P_ ((struct frame *, Lisp_Object, Lisp_Object)); |
| 219 | void x_set_tool_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 219 | void x_set_tool_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object)); |
| 220 | |||
| 221 | extern void mac_get_window_bounds P_ ((struct frame *, Rect *, Rect *)); | ||
| 222 | |||
| 223 | 220 | ||
| 224 | 221 | ||
| 225 | /* Store the screen positions of frame F into XPTR and YPTR. | 222 | /* Store the screen positions of frame F into XPTR and YPTR. |
| @@ -2262,11 +2259,11 @@ mac_window (f, window_prompting, minibuffer_only) | |||
| 2262 | FRAME_MAC_WINDOW (f) = NULL; | 2259 | FRAME_MAC_WINDOW (f) = NULL; |
| 2263 | } | 2260 | } |
| 2264 | } | 2261 | } |
| 2265 | #else | 2262 | #else /* !TARGET_API_MAC_CARBON */ |
| 2266 | FRAME_MAC_WINDOW (f) | 2263 | FRAME_MAC_WINDOW (f) |
| 2267 | = NewCWindow (NULL, &r, "\p", false, zoomDocProc, | 2264 | = NewCWindow (NULL, &r, "\p", false, zoomDocProc, |
| 2268 | (WindowPtr) -1, 1, (long) f->output_data.mac); | 2265 | (WindowRef) -1, 1, (long) f->output_data.mac); |
| 2269 | #endif | 2266 | #endif /* !TARGET_API_MAC_CARBON */ |
| 2270 | /* so that update events can find this mac_output struct */ | 2267 | /* so that update events can find this mac_output struct */ |
| 2271 | f->output_data.mac->mFP = f; /* point back to emacs frame */ | 2268 | f->output_data.mac->mFP = f; /* point back to emacs frame */ |
| 2272 | 2269 | ||
| @@ -3123,7 +3120,7 @@ If omitted or nil, that stands for the selected frame's display. */) | |||
| 3123 | UNBLOCK_INPUT; | 3120 | UNBLOCK_INPUT; |
| 3124 | } | 3121 | } |
| 3125 | #if MAC_OS_X_VERSION_MIN_REQUIRED == 1020 | 3122 | #if MAC_OS_X_VERSION_MIN_REQUIRED == 1020 |
| 3126 | else | 3123 | else /* CGDisplayScreenSize == NULL */ |
| 3127 | #endif | 3124 | #endif |
| 3128 | #endif /* MAC_OS_X_VERSION_MAX_ALLOWED >= 1030 */ | 3125 | #endif /* MAC_OS_X_VERSION_MAX_ALLOWED >= 1030 */ |
| 3129 | #if MAC_OS_X_VERSION_MAX_ALLOWED < 1030 || MAC_OS_X_VERSION_MIN_REQUIRED == 1020 | 3126 | #if MAC_OS_X_VERSION_MAX_ALLOWED < 1030 || MAC_OS_X_VERSION_MIN_REQUIRED == 1020 |
| @@ -3160,7 +3157,7 @@ If omitted or nil, that stands for the selected frame's display. */) | |||
| 3160 | UNBLOCK_INPUT; | 3157 | UNBLOCK_INPUT; |
| 3161 | } | 3158 | } |
| 3162 | #if MAC_OS_X_VERSION_MIN_REQUIRED == 1020 | 3159 | #if MAC_OS_X_VERSION_MIN_REQUIRED == 1020 |
| 3163 | else | 3160 | else /* CGDisplayScreenSize == NULL */ |
| 3164 | #endif | 3161 | #endif |
| 3165 | #endif /* MAC_OS_X_VERSION_MAX_ALLOWED >= 1030 */ | 3162 | #endif /* MAC_OS_X_VERSION_MAX_ALLOWED >= 1030 */ |
| 3166 | #if MAC_OS_X_VERSION_MAX_ALLOWED < 1030 || MAC_OS_X_VERSION_MIN_REQUIRED == 1020 | 3163 | #if MAC_OS_X_VERSION_MAX_ALLOWED < 1030 || MAC_OS_X_VERSION_MIN_REQUIRED == 1020 |
| @@ -4069,8 +4066,12 @@ compute_tip_xy (f, parms, dx, dy, width, height, root_x, root_y) | |||
| 4069 | Point mouse_pos; | 4066 | Point mouse_pos; |
| 4070 | 4067 | ||
| 4071 | BLOCK_INPUT; | 4068 | BLOCK_INPUT; |
| 4069 | #if TARGET_API_MAC_CARBON | ||
| 4070 | GetGlobalMouse (&mouse_pos); | ||
| 4071 | #else | ||
| 4072 | GetMouse (&mouse_pos); | 4072 | GetMouse (&mouse_pos); |
| 4073 | LocalToGlobal (&mouse_pos); | 4073 | LocalToGlobal (&mouse_pos); |
| 4074 | #endif | ||
| 4074 | *root_x = mouse_pos.h; | 4075 | *root_x = mouse_pos.h; |
| 4075 | *root_y = mouse_pos.v; | 4076 | *root_y = mouse_pos.v; |
| 4076 | UNBLOCK_INPUT; | 4077 | UNBLOCK_INPUT; |