fullscreen will again remove menubar (was always shown after menu refactoring)

This commit is contained in:
stefan schippers 2025-11-02 16:51:29 +01:00
parent 1b1ea85e50
commit 56aa1a6a27
1 changed files with 2 additions and 0 deletions

View File

@ -1159,11 +1159,13 @@ void toggle_fullscreen(const char *topwin)
} }
tclvareval("pack forget ", xctx->top_path, ".tabs", NULL); tclvareval("pack forget ", xctx->top_path, ".tabs", NULL);
tclvareval("pack forget ", xctx->top_path, ".statusbar", NULL); tclvareval("pack forget ", xctx->top_path, ".statusbar", NULL);
tclvareval(xctx->top_path[0] ? xctx->top_path : ".", " configure -menu {}", NULL);
xctx->menu_removed |= 1; /* menu_removed bit 0 == 1: other bars were removed */ xctx->menu_removed |= 1; /* menu_removed bit 0 == 1: other bars were removed */
} else if(xctx->menu_removed) { /* bars were removed so pack them back */ } else if(xctx->menu_removed) { /* bars were removed so pack them back */
tclvareval("pack forget ", xctx->top_path, ".drw", NULL); tclvareval("pack forget ", xctx->top_path, ".drw", NULL);
tclvareval("pack ", xctx->top_path, ".statusbar -side bottom -fill x", NULL); tclvareval("pack ", xctx->top_path, ".statusbar -side bottom -fill x", NULL);
tclvareval("pack ", xctx->top_path, ".drw -side right -fill both -expand true", NULL); tclvareval("pack ", xctx->top_path, ".drw -side right -fill both -expand true", NULL);
tclvareval(xctx->top_path[0] ? xctx->top_path : ".", " configure -menu .menubar", NULL);
if(tclgetboolvar("tabbed_interface")) { if(tclgetboolvar("tabbed_interface")) {
tclvareval("pack_tabs", NULL); tclvareval("pack_tabs", NULL);
} }