;; versions.
(global-set-key [header-line down-mouse-1] 'mouse-drag-header-line)
(global-set-key [header-line mouse-1] 'mouse-select-window)
+(global-set-key [tab-line mouse-1] 'mouse-select-window)
;; (global-set-key [mode-line drag-mouse-1] 'mouse-select-window)
(global-set-key [mode-line down-mouse-1] 'mouse-drag-mode-line)
(global-set-key [mode-line mouse-1] 'mouse-select-window)
(dotimes (_ (1+ (seq-position prev-buffers buffer)))
(switch-to-prev-buffer window)))
(t
- (switch-to-buffer buffer)))))
+ (with-selected-window window
+ (switch-to-buffer buffer))))))
(defun tab-line-switch-to-prev-tab (&optional e)
"Switch to the previous tab."
else if (base_face_id == TAB_LINE_FACE_ID)
row = MATRIX_TAB_LINE_ROW (w->desired_matrix);
else if (base_face_id == HEADER_LINE_FACE_ID)
- row = MATRIX_HEADER_LINE_ROW (w->desired_matrix);
+ {
+ /* Header line row depends on whether tab line is enabled. */
+ w->desired_matrix->tab_line_p = window_wants_tab_line (w);
+ row = MATRIX_HEADER_LINE_ROW (w->desired_matrix);
+ }
}
/* Clear IT, and set it->object and other IT's Lisp objects to Qnil.