Skip to content

Commit

Permalink
Add resize-head function.
Browse files Browse the repository at this point in the history
  • Loading branch information
vtl authored and dangerousben committed Dec 26, 2010
1 parent 7092bea commit 0feb156
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions head.lisp
Expand Up @@ -87,6 +87,19 @@
(defun group-heads (group)
(screen-heads (group-screen group)))

(defun resize-head (number x y width height)
"Resize head number `number' to given dimension."
(let* ((screen (current-screen))
(oh (find number (screen-heads screen) :key 'head-number))
(nh (make-head :number number
:x x :y y
:width width
:height height
:window nil)))
(scale-head screen oh nh)
(mapc 'group-add-head (screen-groups screen))
(update-mode-lines screen)))

(defun tile-group-frame-head (group head)
(elt (tile-group-frame-tree group) (position head (group-heads group))))

Expand Down

0 comments on commit 0feb156

Please sign in to comment.