From: Martin Rudalics Date: Sun, 5 Jun 2016 09:50:47 +0000 (+0200) Subject: Fix mouse dragging of vertical dividers with scroll bars on left (Bug#23690) X-Git-Tag: emacs-25.0.95~16 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0b33a23;p=emacs.git Fix mouse dragging of vertical dividers with scroll bars on left (Bug#23690) * lisp/mouse.el (mouse-drag-line): With scroll bars on the left adjust trailing edge of window on the left when dragging the vertical divider of the mode line. (Bug#23690) --- diff --git a/lisp/mouse.el b/lisp/mouse.el index fa355ffeb71..592338ad09d 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el @@ -406,7 +406,15 @@ must be one of the symbols `header', `mode', or `vertical'." (or (not resize-mini-windows) (eq minibuffer-window (active-minibuffer-window))))))) - (setq draggable nil)))) + (setq draggable nil))) + ((eq line 'vertical) + (let ((divider-width (frame-right-divider-width frame))) + (when (and (or (not (numberp divider-width)) + (zerop divider-width)) + (eq (cdr (assq 'vertical-scroll-bars + (frame-parameters frame))) + 'left)) + (setq window (window-in-direction 'left window t)))))) (let* ((exitfun nil) (move