Switch menus also to be attached to the window instead of an overlay and

drawn as part of the client's scene. This means removing the popup menu.
This commit is contained in:
nicm
2026-07-14 19:07:03 +00:00
committed by tmux update bot
parent 1a02c9957c
commit ad6832e697
9 changed files with 567 additions and 381 deletions

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: server-fn.c,v 1.147 2026/07/10 13:38:45 nicm Exp $ */
/* $OpenBSD: server-fn.c,v 1.148 2026/07/14 19:07:03 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -129,6 +129,19 @@ server_redraw_window(struct window *w)
}
}
void
server_redraw_window_menu(struct window *w)
{
struct client *c;
TAILQ_FOREACH(c, &clients, entry) {
if (c->session != NULL &&
c->session->curw != NULL &&
c->session->curw->window == w)
c->flags |= CLIENT_REDRAWMENU;
}
}
void
server_redraw_window_borders(struct window *w)
{