aboutsummaryrefslogtreecommitdiffstats
path: root/src/pgtkterm.c
diff options
context:
space:
mode:
authorPo Lu2023-05-13 10:27:57 +0800
committerPo Lu2023-05-13 10:28:11 +0800
commitfa598571adab4858282f337b45984517e197f8a9 (patch)
tree1a96cbcefc895d05875fa765449adefd81348afd /src/pgtkterm.c
parentd9f674aea50cf1fe6ac138f14b602ce2d0f5cf77 (diff)
downloademacs-fa598571adab4858282f337b45984517e197f8a9.tar.gz
emacs-fa598571adab4858282f337b45984517e197f8a9.zip
Fix detection of tab bar windows on PGTK
* src/dispnew.c (adjust_frame_glyphs_for_window_redisplay): Adjust commentary. * src/pgtkfns.c (pgtk_set_doc_edited): Remove unused function. * src/pgtkterm.c (pgtk_clear_under_internal_border): Clean up X related code. * src/pgtkterm.h: Update prototypes. * src/window.h: Define WIDNOW_TAB_BAR_P on PGTK. (bug#63472)
Diffstat (limited to 'src/pgtkterm.c')
-rw-r--r--src/pgtkterm.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/src/pgtkterm.c b/src/pgtkterm.c
index c00e13550bd..6cb1a3a4626 100644
--- a/src/pgtkterm.c
+++ b/src/pgtkterm.c
@@ -4954,22 +4954,19 @@ pgtk_clear_under_internal_border (struct frame *f)
4954 4954
4955 if (face) 4955 if (face)
4956 { 4956 {
4957#define x_fill_rectangle(f, gc, x, y, w, h) \ 4957 fill_background_by_face (f, face, 0, margin, width, border);
4958 fill_background_by_face (f, face, x, y, w, h) 4958 fill_background_by_face (f, face, 0, 0, border, height);
4959 x_fill_rectangle (f, gc, 0, margin, width, border); 4959 fill_background_by_face (f, face, width - border, 0, border,
4960 x_fill_rectangle (f, gc, 0, 0, border, height); 4960 height);
4961 x_fill_rectangle (f, gc, width - border, 0, border, height); 4961 fill_background_by_face (f, face, 0, height - border, width,
4962 x_fill_rectangle (f, gc, 0, height - border, width, border); 4962 border);
4963#undef x_fill_rectangle
4964 } 4963 }
4965 else 4964 else
4966 { 4965 {
4967#define x_clear_area(f, x, y, w, h) pgtk_clear_area (f, x, y, w, h) 4966 pgtk_clear_area (f, 0, 0, border, height);
4968 x_clear_area (f, 0, 0, border, height); 4967 pgtk_clear_area (f, 0, margin, width, border);
4969 x_clear_area (f, 0, margin, width, border); 4968 pgtk_clear_area (f, width - border, 0, border, height);
4970 x_clear_area (f, width - border, 0, border, height); 4969 pgtk_clear_area (f, 0, height - border, width, border);
4971 x_clear_area (f, 0, height - border, width, border);
4972#undef x_clear_area
4973 } 4970 }
4974 4971
4975 unblock_input (); 4972 unblock_input ();