summaryrefslogtreecommitdiff
path: root/lisp/mouse.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2006-02-13 18:47:18 +0000
committerRichard M. Stallman <rms@gnu.org>2006-02-13 18:47:18 +0000
commitad64cd77b0d31794b2a57c6f25efa5d6138459a6 (patch)
tree82b31cb337ac3bd36dd118ad6700bf635341b8ae /lisp/mouse.el
parent25d346437329083b623d6e051f0acf71d35364b6 (diff)
downloademacs-ad64cd77b0d31794b2a57c6f25efa5d6138459a6.tar.gz
(mouse-drag-mode-line-1): Use mouse-drag-move-window-bottom
for the minibuffer too, but not if resize-mini-windows will interfere.
Diffstat (limited to 'lisp/mouse.el')
-rw-r--r--lisp/mouse.el17
1 files changed, 2 insertions, 15 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 9922b0f9aed..3a22fb49b04 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -481,21 +481,8 @@ MODE-LINE-P non-nil means dragging a mode line; nil means a header line."
;; grow/shrink minibuffer?
(if should-enlarge-minibuffer
- (progn
- ;; yes. briefly select minibuffer so
- ;; enlarge-window will affect the
- ;; correct window.
- (select-window minibuffer)
- ;; scale back shrinkage if it would
- ;; make the minibuffer less than 1
- ;; line tall.
- (if (and (> growth 0)
- (< (- (window-height minibuffer)
- growth)
- 1))
- (setq growth (1- (window-height minibuffer))))
- (enlarge-window (- growth))
- (select-window start-event-window))
+ (unless resize-mini-windows
+ (mouse-drag-move-window-bottom start-event-window growth))
;; no. grow/shrink the selected window
;(message "growth = %d" growth)
(if mode-line-p