diff src/window.c @ 109591:1fb35da4a097

Merge from mainline.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Thu, 29 Jul 2010 23:01:42 +0000
parents 06384b3caebf
children c4c8e4a16194
line wrap: on
line diff
--- a/src/window.c	Wed Jul 28 22:44:58 2010 +0000
+++ b/src/window.c	Thu Jul 29 23:01:42 2010 +0000
@@ -645,13 +645,18 @@
 #ifdef FRAME_MENUBAR_HEIGHT
   *add_y += FRAME_MENUBAR_HEIGHT (f);
 #endif
-#ifdef FRAME_TOOLBAR_HEIGHT
+#ifdef FRAME_TOOLBAR_TOP_HEIGHT
+  *add_y += FRAME_TOOLBAR_TOP_HEIGHT (f);
+#elif FRAME_TOOLBAR_HEIGHT
   *add_y += FRAME_TOOLBAR_HEIGHT (f);
 #endif
 #ifdef FRAME_NS_TITLEBAR_HEIGHT
   *add_y += FRAME_NS_TITLEBAR_HEIGHT (f);
 #endif
   *add_x = f->left_pos;
+#ifdef FRAME_TOOLBAR_LEFT_WIDTH
+  *add_x += FRAME_TOOLBAR_LEFT_WIDTH (f);
+#endif
 }
 
 DEFUN ("window-absolute-pixel-edges", Fwindow_absolute_pixel_edges,