Function: treemacs--mouse-drag-advice
treemacs--mouse-drag-advice is a byte-compiled function defined in
treemacs-mouse-interface.el.
Signature
(treemacs--mouse-drag-advice FN &rest ARGS)
Documentation
Advice to wrap adjust-window-trailing-edge as FN and its ARGS.
Ensure that treemacs' window width can be changed with the mouse, even if it is locked.
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-mouse-interface.el
(defun treemacs--mouse-drag-advice (fn &rest args)
"Advice to wrap `adjust-window-trailing-edge' as FN and its ARGS.
Ensure that treemacs' window width can be changed with the mouse, even if it is
locked."
(with-selected-window (or (treemacs-get-local-window) (selected-window))
(let ((treemacs--width-is-locked)
(window-size-fixed))
(apply fn args))))