mirror of
https://github.com/tmux/tmux.git
synced 2026-10-10 12:14:43 +00:00
Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
* refs/remotes/tmux-openbsd/master: 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:
15
server-fn.c
15
server-fn.c
@@ -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>
|
||||
@@ -128,6 +128,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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user