Function: mouse-drag-header-line

mouse-drag-header-line is an interactive and byte-compiled function defined in mouse.el.gz.

Signature

(mouse-drag-header-line START-EVENT)

Documentation

Change the height of a window by dragging on its header line.

START-EVENT is the starting mouse event of the drag action.

If the drag happens in a header line on the top of a frame and that frame's drag-with-header-line parameter is non-nil, drag the frame instead.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/mouse.el.gz
(defun mouse-drag-header-line (start-event)
  "Change the height of a window by dragging on its header line.
START-EVENT is the starting mouse event of the drag action.

If the drag happens in a header line on the top of a frame and
that frame's `drag-with-header-line' parameter is non-nil, drag
the frame instead."
  (interactive "e")
  (let* ((start (event-start start-event))
	 (window (posn-window start)))
    (if (and (window-live-p window)
             (not (window-at-side-p window 'top)))
        (mouse-drag-line start-event 'header)
      (let ((frame (window-frame window)))
        (when (frame-parameter frame 'drag-with-header-line)
          (mouse-drag-frame-move start-event))))))