diff options
author | Po Lu <luangruo@yahoo.com> | 2023-11-23 15:05:31 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2023-11-23 15:05:31 +0800 |
commit | 47755303576d56bda581637c3d474b249c8dac49 (patch) | |
tree | 65e5a5b4a9cdcde7cb171b6fa21b2028c4a1457e /src/androidfns.c | |
parent | e1c0c5def3d1dc93e34180ccdf88a6aaaad59ea3 (diff) | |
download | emacs-47755303576d56bda581637c3d474b249c8dac49.tar.gz |
Prevent tab bar from vanishing on Android
* src/androidfns.c (android_change_tab_bar_height): Amend with
code absent when the function was first transcribed.
* src/haikufns.c (haiku_change_tab_bar_height):
* src/nsfns.m (ns_change_tab_bar_height):
* src/pgtkfns.c (pgtk_change_tab_bar_height):
* src/w32fns.c (w32_change_tab_bar_height):
* src/xfns.c (x_change_tab_bar_height): Revise commentary.
Diffstat (limited to 'src/androidfns.c')
-rw-r--r-- | src/androidfns.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/androidfns.c b/src/androidfns.c index aeba9d897ad..31a4924e34d 100644 --- a/src/androidfns.c +++ b/src/androidfns.c @@ -367,8 +367,16 @@ android_change_tab_bar_height (struct frame *f, int height) the tab bar by even 1 pixel, FRAME_TAB_BAR_LINES will be changed, leading to the tab bar height being incorrectly set upon the next call to android_set_font. (bug#59285) */ + lines = height / unit; + /* Even so, HEIGHT might be less than unit if the tab bar face is + not so tall as the frame's font height; which if true lines will + be set to 0 and the tab bar will thus vanish. */ + + if (lines == 0 && height != 0) + lines = 1; + /* Make sure we redisplay all windows in this frame. */ fset_redisplay (f); |