aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2016-06-05 11:50:47 +0200
committerMartin Rudalics2016-06-05 11:50:47 +0200
commit0b33a23ffecdb4ca87806c9fc7568d17c5ca7e98 (patch)
tree1dd3eddced64186c3deda3df8f671499895e2c37
parenta5d05f447008c4a99d1b00f0af642b4a5ce4cbce (diff)
downloademacs-0b33a23ffecdb4ca87806c9fc7568d17c5ca7e98.tar.gz
emacs-0b33a23ffecdb4ca87806c9fc7568d17c5ca7e98.zip
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)
-rw-r--r--lisp/mouse.el10
1 files changed, 9 insertions, 1 deletions
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'."
406 (or (not resize-mini-windows) 406 (or (not resize-mini-windows)
407 (eq minibuffer-window 407 (eq minibuffer-window
408 (active-minibuffer-window))))))) 408 (active-minibuffer-window)))))))
409 (setq draggable nil)))) 409 (setq draggable nil)))
410 ((eq line 'vertical)
411 (let ((divider-width (frame-right-divider-width frame)))
412 (when (and (or (not (numberp divider-width))
413 (zerop divider-width))
414 (eq (cdr (assq 'vertical-scroll-bars
415 (frame-parameters frame)))
416 'left))
417 (setq window (window-in-direction 'left window t))))))
410 418
411 (let* ((exitfun nil) 419 (let* ((exitfun nil)
412 (move 420 (move