mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
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.
This commit is contained in:
parent
e1c0c5def3
commit
4775530357
6 changed files with 33 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue