summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2003-11-29 11:10:07 +0000
committerJan Djärv <jan.h.d@swipnet.se>2003-11-29 11:10:07 +0000
commit73f8d4a14219c4c6519245c949d4a334afcc55e6 (patch)
treea8b50bfaa8a7dfbfd98d3b7f1f6ca1d15cc8c232
parent72a5782354691d56c10f97246959e4520deb5ae2 (diff)
downloademacs-73f8d4a14219c4c6519245c949d4a334afcc55e6.tar.gz
* dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
to compile on terminal configuration.
-rw-r--r--src/ChangeLog3
-rw-r--r--src/dispnew.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0d63949b954..715ade56ab0 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
2003-11-29 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
+ * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
+ to compile on terminal configuration.
+
* fileio.c (Fread_file_name): Check use_file_dialog also before
calling Fx_file_dialog.
diff --git a/src/dispnew.c b/src/dispnew.c
index c391cd6b615..279c1f10e58 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -5726,11 +5726,13 @@ buffer_posn_from_coords (w, x, y, dx, dy, object, pos)
*dx = x0 + it.first_visible_x - it.current_x;
*dy = *y - it.current_y;
+#ifdef HAVE_WINDOW_SYSTEM
if (it.what == IT_IMAGE
&& (img = IMAGE_FROM_ID (it.f, it.image_id)) != NULL
&& !NILP (img->spec))
*object = img->spec;
else
+#endif
*object = STRINGP (it.string) ? it.string : w->buffer;
*pos = it.current;
*x = it.hpos;