Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam
2026-05-28 12:00:07 +01:00
2 changed files with 6 additions and 5 deletions

View File

@@ -1018,7 +1018,8 @@ have_event:
/* Only change pane if not already dragging a pane border. */
if (lwp == NULL) {
lwp = wp = window_get_active_at(w, px, py);
c->tty.mouse_last_pane = wp->id;
if (wp != NULL)
c->tty.mouse_last_pane = wp->id;
}
if (c->tty.mouse_scrolling_flag == 0 &&
loc == KEYC_MOUSE_LOCATION_SCROLLBAR_SLIDER) {