]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't draw GTK's internal border and tab bar on top of each other
authorMartin Rudalics <rudalics@gmx.at>
Fri, 3 Apr 2020 08:31:35 +0000 (10:31 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Fri, 3 Apr 2020 08:31:35 +0000 (10:31 +0200)
* src/xterm.c (x_clear_under_internal_border): For GTK builds
have 'margin' count in the height of the tab bar to avoid that
tab bar and internal border are drawn on top of each other.

src/xterm.c

index 2ba3c009402f44c0bd8ca4e8fa9607322a5dcef2..bda976fcbbd830860a43837551d53078e7d0047a 100644 (file)
@@ -1291,11 +1291,7 @@ x_clear_under_internal_border (struct frame *f)
       int border = FRAME_INTERNAL_BORDER_WIDTH (f);
       int width = FRAME_PIXEL_WIDTH (f);
       int height = FRAME_PIXEL_HEIGHT (f);
-#ifdef USE_GTK
-      int margin = 0;
-#else
       int margin = FRAME_TOP_MARGIN_HEIGHT (f);
-#endif
       int face_id =
        !NILP (Vface_remapping_alist)
        ? lookup_basic_face (NULL, f, INTERNAL_BORDER_FACE_ID)