* dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
authorJan Djärv <jan.h.d@swipnet.se>
Sat, 29 Nov 2003 11:10:07 +0000 (11:10 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Sat, 29 Nov 2003 11:10:07 +0000 (11:10 +0000)
  to compile on terminal configuration.

src/ChangeLog
src/dispnew.c

index 19ffd8f..0c89274 100644 (file)
@@ -1,5 +1,8 @@
 2003-11-29  Jan Dj\e,Ad\e(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.
 
index c391cd6..279c1f1 100644 (file)
@@ -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;