summaryrefslogtreecommitdiff
path: root/src/frame.c
diff options
context:
space:
mode:
authorAndrew Choi <akochoi@shaw.ca>2003-04-01 01:09:13 +0000
committerAndrew Choi <akochoi@shaw.ca>2003-04-01 01:09:13 +0000
commit2f4b24c371cd02e3fdbc26a6e6ea168122b28696 (patch)
treefc3be66e8d30bdb91ae12e6b66348c62c773b482 /src/frame.c
parentf202923389fab2e8255dbdc7110cc8d0d28eaf0d (diff)
downloademacs-2f4b24c371cd02e3fdbc26a6e6ea168122b28696.tar.gz
Fix build on Mac OS X with Carbon.
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c3
1 files changed, 3 insertions, 0 deletions
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)
store_in_alist (alistptr, Qdisplay,
XCAR (FRAME_X_DISPLAY_INFO (f)->name_list_element));
+#ifndef HAVE_CARBON
+/* A Mac Window is identified by a struct, not an integer. */
if (FRAME_X_OUTPUT (f)->parent_desc == FRAME_X_DISPLAY_INFO (f)->root_window)
tem = Qnil;
else
XSETFASTINT (tem, FRAME_X_OUTPUT (f)->parent_desc);
store_in_alist (alistptr, Qparent_id, tem);
+#endif
}