]> git.eshelyaron.com Git - emacs.git/commitdiff
(coordinates_in_window): Use
authorGerd Moellmann <gerd@gnu.org>
Mon, 30 Aug 1999 23:14:27 +0000 (23:14 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 30 Aug 1999 23:14:27 +0000 (23:14 +0000)
FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
(window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
instead of twice.

src/window.c

index cc19b7606cf2b14394bed2e42b8e4b1d413803e7..623a48d661158b8a10a033620711e2b8aff2e15b 100644 (file)
@@ -446,7 +446,7 @@ coordinates_in_window (w, x, y)
 {
   struct frame *f = XFRAME (WINDOW_FRAME (w));
   int left_x, right_x, top_y, bottom_y;
-  int flags_area_width = FRAME_FLAGS_AREA_WIDTH (f);
+  int flags_area_width = FRAME_LEFT_FLAGS_AREA_WIDTH (f);
 
   if (w->pseudo_window_p)
     {
@@ -3387,7 +3387,7 @@ window_internal_width (w)
   /* On window-systems, areas to the left and right of the window
      are used to display bitmaps there.  */
   if (FRAME_WINDOW_P (f))
-    width -= 2 * FRAME_FLAGS_AREA_COLS (f);
+    width -= FRAME_FLAGS_AREA_COLS (f);
 
   return width;
 }