mirror of
https://github.com/stumpwm/stumpwm.git
synced 2026-09-10 07:26:20 -04:00
Rewrite resize-direction
This commit is contained in:
parent
baf5df7467
commit
1e49e2feb2
13
iresize.lisp
13
iresize.lisp
|
|
@ -58,14 +58,11 @@
|
|||
(defcommand resize-direction (d)
|
||||
((:direction "Direction: "))
|
||||
"Resize frame to direction @var{d}"
|
||||
(let* ((formats '((:up . "0 -~D")
|
||||
(:down . "0 ~D")
|
||||
(:left . "-~D 0")
|
||||
(:right . "~D 0")))
|
||||
(deltas (format nil (cdr (assoc (princ d) formats))
|
||||
*resize-increment*))
|
||||
(to-be-run (concatenate 'string "resize " deltas)))
|
||||
(run-commands to-be-run)))
|
||||
(case (princ d)
|
||||
((:up) (resize 0 (- *resize-increment*)))
|
||||
((:down) (resize 0 *resize-increment*))
|
||||
((:left) (resize (- *resize-increment*) 0))
|
||||
((:right) (resize *resize-increment* 0))))
|
||||
|
||||
(defun resize-unhide ()
|
||||
(clear-frame-outlines (current-group))
|
||||
|
|
|
|||
Loading…
Reference in a new issue