terminal: in fullscreen, don't show border toggle right click menu entry

This commit is contained in:
K. Lange 2019-12-23 21:28:55 +09:00
parent ce186b7b95
commit 1f5008d845

View File

@ -2337,9 +2337,11 @@ int main(int argc, char ** argv) {
menu_right_click = menu_create();
menu_insert(menu_right_click, _menu_copy);
menu_insert(menu_right_click, _menu_paste);
if (!_fullscreen) {
menu_insert(menu_right_click, menu_create_separator());
_menu_toggle_borders_context = menu_create_normal(NULL, NULL, _no_frame ? "Show borders" : "Hide borders", _menu_action_hide_borders);
menu_insert(menu_right_click, _menu_toggle_borders_context);
}
menu_insert(menu_right_click, menu_create_separator());
menu_insert(menu_right_click, _menu_exit);