]> git.eshelyaron.com Git - emacs.git/commitdiff
; * src/pgtkfns.c (frame_geometry): Fix typo in last change.
authorPo Lu <luangruo@yahoo.com>
Wed, 21 Jun 2023 03:32:41 +0000 (11:32 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 21 Jun 2023 03:32:41 +0000 (11:32 +0800)
src/pgtkfns.c

index 9cec72435159e2a06b8b2fcb4b4a32a146f93660..c154d37f47f2f49cc055f99e694ea65126575290 100644 (file)
@@ -3451,7 +3451,6 @@ frame_geometry (Lisp_Object frame, Lisp_Object attribute)
   tab_bar_height = FRAME_TAB_BAR_HEIGHT (f);
   tab_bar_width = (tab_bar_height
                   ? native_width - 2 * internal_border_width : 0);
-  inner_top += tab_bar_height;
 
   /* Construct list.  */
   if (EQ (attribute, Qouter_edges))
@@ -3464,10 +3463,12 @@ frame_geometry (Lisp_Object frame, Lisp_Object attribute)
   else if (EQ (attribute, Qinner_edges))
     return list4 (make_fixnum (native_left + internal_border_width),
                  make_fixnum (native_top
-                              + tool_bar_height
+                              + tab_bar_height
+                              + FRAME_TOOL_BAR_TOP_HEIGHT (f)
                               + internal_border_width),
                  make_fixnum (native_right - internal_border_width),
-                 make_fixnum (native_bottom - internal_border_width));
+                 make_fixnum (native_bottom - internal_border_width
+                              - FRAME_TOOL_BAR_BOTTOM_HEIGHT (f)));
   else
     return
       list (Fcons (Qouter_position,