mirror of
https://github.com/tmux/tmux.git
synced 2026-02-13 17:49:15 +00:00
Merge branch 'obsd-master'
This commit is contained in:
@@ -403,13 +403,13 @@ server_client_set_session(struct client *c, struct session *s)
|
||||
if (old != NULL && old->curw != NULL)
|
||||
window_update_focus(old->curw->window);
|
||||
if (s != NULL) {
|
||||
s->curw->window->latest = c;
|
||||
recalculate_sizes();
|
||||
window_update_focus(s->curw->window);
|
||||
session_update_activity(s, NULL);
|
||||
session_theme_changed(s);
|
||||
gettimeofday(&s->last_attached_time, NULL);
|
||||
s->curw->flags &= ~WINLINK_ALERTFLAGS;
|
||||
s->curw->window->latest = c;
|
||||
alerts_check_session(s);
|
||||
tty_update_client_offset(c);
|
||||
status_timer_start(c);
|
||||
@@ -2413,16 +2413,6 @@ server_client_key_callback(struct cmdq_item *item, void *data)
|
||||
event->key = key;
|
||||
}
|
||||
|
||||
/* Handle theme reporting keys. */
|
||||
if (key == KEYC_REPORT_LIGHT_THEME) {
|
||||
server_client_report_theme(c, THEME_LIGHT);
|
||||
goto out;
|
||||
}
|
||||
if (key == KEYC_REPORT_DARK_THEME) {
|
||||
server_client_report_theme(c, THEME_DARK);
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* Find affected pane. */
|
||||
if (!KEYC_IS_MOUSE(key) || cmd_find_from_mouse(&fs, m, 0) != 0)
|
||||
cmd_find_from_client(&fs, c, 0);
|
||||
@@ -2641,6 +2631,19 @@ server_client_handle_key(struct client *c, struct key_event *event)
|
||||
if (s == NULL || (c->flags & CLIENT_UNATTACHEDFLAGS))
|
||||
return (0);
|
||||
|
||||
/*
|
||||
* Handle theme reporting keys before overlays so they work even when a
|
||||
* popup is open.
|
||||
*/
|
||||
if (event->key == KEYC_REPORT_LIGHT_THEME) {
|
||||
server_client_report_theme(c, THEME_LIGHT);
|
||||
return (0);
|
||||
}
|
||||
if (event->key == KEYC_REPORT_DARK_THEME) {
|
||||
server_client_report_theme(c, THEME_DARK);
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Key presses in overlay mode and the command prompt are a special
|
||||
* case. The queue might be blocked so they need to be processed
|
||||
|
||||
Reference in New Issue
Block a user