aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Choi2003-04-01 01:09:13 +0000
committerAndrew Choi2003-04-01 01:09:13 +0000
commit2f4b24c371cd02e3fdbc26a6e6ea168122b28696 (patch)
treefc3be66e8d30bdb91ae12e6b66348c62c773b482 /src
parentf202923389fab2e8255dbdc7110cc8d0d28eaf0d (diff)
downloademacs-2f4b24c371cd02e3fdbc26a6e6ea168122b28696.tar.gz
emacs-2f4b24c371cd02e3fdbc26a6e6ea168122b28696.zip
Fix build on Mac OS X with Carbon.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog10
-rw-r--r--src/frame.c3
-rw-r--r--src/macfns.c2
-rw-r--r--src/macterm.h8
4 files changed, 21 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d67b14666b3..1140b1f49ba 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,13 @@
12003-03-31 Andrew Choi <akochoi@shaw.ca>
2
3 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
4 parent window ID.
5
6 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
7
8 * macterm.h (struct mac_output): Define x_pixels_diff and
9 y_pixels_diff.
10
12003-04-01 Kim F. Storm <storm@cua.dk> 112003-04-01 Kim F. Storm <storm@cua.dk>
2 12
3 * Makefile.in (frame.o): Add dependency on blockinput.h and files 13 * Makefile.in (frame.o): Add dependency on blockinput.h and files
diff --git a/src/frame.c b/src/frame.c
index 69651ad81ff..697c2b8aabe 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -2967,11 +2967,14 @@ x_report_frame_params (f, alistptr)
2967 store_in_alist (alistptr, Qdisplay, 2967 store_in_alist (alistptr, Qdisplay,
2968 XCAR (FRAME_X_DISPLAY_INFO (f)->name_list_element)); 2968 XCAR (FRAME_X_DISPLAY_INFO (f)->name_list_element));
2969 2969
2970#ifndef HAVE_CARBON
2971/* A Mac Window is identified by a struct, not an integer. */
2970 if (FRAME_X_OUTPUT (f)->parent_desc == FRAME_X_DISPLAY_INFO (f)->root_window) 2972 if (FRAME_X_OUTPUT (f)->parent_desc == FRAME_X_DISPLAY_INFO (f)->root_window)
2971 tem = Qnil; 2973 tem = Qnil;
2972 else 2974 else
2973 XSETFASTINT (tem, FRAME_X_OUTPUT (f)->parent_desc); 2975 XSETFASTINT (tem, FRAME_X_OUTPUT (f)->parent_desc);
2974 store_in_alist (alistptr, Qparent_id, tem); 2976 store_in_alist (alistptr, Qparent_id, tem);
2977#endif
2975} 2978}
2976 2979
2977 2980
diff --git a/src/macfns.c b/src/macfns.c
index 5a3651a9dfa..ebaf2ee49e1 100644
--- a/src/macfns.c
+++ b/src/macfns.c
@@ -8803,8 +8803,6 @@ syms_of_macfns ()
8803 Fput (Qundefined_color, Qerror_message, 8803 Fput (Qundefined_color, Qerror_message,
8804 build_string ("Undefined color")); 8804 build_string ("Undefined color"));
8805 8805
8806 init_x_parm_symbols ();
8807
8808 DEFVAR_LISP ("x-bitmap-file-path", &Vx_bitmap_file_path, 8806 DEFVAR_LISP ("x-bitmap-file-path", &Vx_bitmap_file_path,
8809 doc: /* List of directories to search for window system bitmap files. */); 8807 doc: /* List of directories to search for window system bitmap files. */);
8810 Vx_bitmap_file_path = decode_env_path ((char *) 0, "PATH"); 8808 Vx_bitmap_file_path = decode_env_path ((char *) 0, "PATH");
diff --git a/src/macterm.h b/src/macterm.h
index ba6d725b94c..f57008b8b7a 100644
--- a/src/macterm.h
+++ b/src/macterm.h
@@ -432,6 +432,14 @@ struct mac_output {
432 432
433 /* See enum below */ 433 /* See enum below */
434 int want_fullscreen; 434 int want_fullscreen;
435
436 /* This many pixels are the difference between the outer window (i.e. the
437 left of the window manager decoration) and FRAME_X_WINDOW. */
438 int x_pixels_diff;
439
440 /* This many pixels are the difference between the outer window (i.e. the
441 top of the window manager titlebar) and FRAME_X_WINDOW. */
442 int y_pixels_diff;
435}; 443};
436 444
437typedef struct mac_output mac_output; 445typedef struct mac_output mac_output;