diff options
| author | Martin Rudalics | 2020-04-03 10:31:35 +0200 |
|---|---|---|
| committer | Martin Rudalics | 2020-04-03 10:31:35 +0200 |
| commit | d4f51d0a2ef0dbba7a798cd7b8b0a791f723bda5 (patch) | |
| tree | 4bf5bf9116e7aca1744937b2bb303d5f6b93f312 | |
| parent | 38731d504eb4675ff1c8a82f96cb90beced941d3 (diff) | |
| download | emacs-d4f51d0a2ef0dbba7a798cd7b8b0a791f723bda5.tar.gz emacs-d4f51d0a2ef0dbba7a798cd7b8b0a791f723bda5.zip | |
Don't draw GTK's internal border and tab bar on top of each other
* 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.
| -rw-r--r-- | src/xterm.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/xterm.c b/src/xterm.c index 2ba3c009402..bda976fcbbd 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -1291,11 +1291,7 @@ x_clear_under_internal_border (struct frame *f) | |||
| 1291 | int border = FRAME_INTERNAL_BORDER_WIDTH (f); | 1291 | int border = FRAME_INTERNAL_BORDER_WIDTH (f); |
| 1292 | int width = FRAME_PIXEL_WIDTH (f); | 1292 | int width = FRAME_PIXEL_WIDTH (f); |
| 1293 | int height = FRAME_PIXEL_HEIGHT (f); | 1293 | int height = FRAME_PIXEL_HEIGHT (f); |
| 1294 | #ifdef USE_GTK | ||
| 1295 | int margin = 0; | ||
| 1296 | #else | ||
| 1297 | int margin = FRAME_TOP_MARGIN_HEIGHT (f); | 1294 | int margin = FRAME_TOP_MARGIN_HEIGHT (f); |
| 1298 | #endif | ||
| 1299 | int face_id = | 1295 | int face_id = |
| 1300 | !NILP (Vface_remapping_alist) | 1296 | !NILP (Vface_remapping_alist) |
| 1301 | ? lookup_basic_face (NULL, f, INTERNAL_BORDER_FACE_ID) | 1297 | ? lookup_basic_face (NULL, f, INTERNAL_BORDER_FACE_ID) |