Add a utmp option if built with utempter, GitHub issue 5657 from Damian Nowak.

This commit is contained in:
Nicholas Marriott
2026-10-09 13:18:05 +01:00
parent 10c744038f
commit b7fd92b782
7 changed files with 81 additions and 17 deletions

3
tmux.h
View File

@@ -1355,6 +1355,7 @@ struct window_pane {
#define PANE_CAPTUREALLKEYS 0x100000
#define PANE_FLOATOVERZOOM 0x200000
#define PANE_CLOSEONCANCEL 0x400000
#define PANE_UTMP 0x800000
bitstr_t *sync_dirty;
u_int sync_dirty_size;
@@ -3725,6 +3726,8 @@ struct window *window_find_by_id(u_int);
void window_update_activity(struct window *);
struct window *window_create(u_int, u_int, u_int, u_int);
void window_pane_set_event(struct window_pane *);
void window_pane_utmp_add(struct window_pane *);
void window_pane_utmp_remove(struct window_pane *);
void window_pane_wait_finish(struct window_pane *);
struct window_pane *window_get_active_at(struct window *, u_int, u_int);
struct window_pane *window_find_string(struct window *, const char *);