fixed resizing in north-west directions
This commit is contained in:
parent
1ef21b5897
commit
ad3e6183c2
|
@ -88,7 +88,12 @@
|
|||
(rectangle:width rect) (rectangle:height rect)))
|
||||
|
||||
(define (adjust-rect wm client sr dx dy dir)
|
||||
(let* ((r
|
||||
(let* ((w.h (maximal-size/hints (wm:dpy wm) (client:window client)
|
||||
(+ (rectangle:width sr) dx)
|
||||
(+ (rectangle:height sr) dy)))
|
||||
(dx (- (car w.h) (rectangle:width sr)))
|
||||
(dy (- (cdr w.h) (rectangle:height sr))))
|
||||
|
||||
(case dir
|
||||
((west)
|
||||
(make-rectangle (+ (rectangle:x sr) dx)
|
||||
|
@ -130,12 +135,7 @@
|
|||
(rectangle:y sr)
|
||||
(- (rectangle:width sr) dx)
|
||||
(+ (rectangle:height sr) dy)))
|
||||
(else sr)))
|
||||
(w.h (maximal-size/hints (wm:dpy wm) (client:window client)
|
||||
(rectangle:width r) (rectangle:height r))))
|
||||
(set-rectangle:width! r (car w.h))
|
||||
(set-rectangle:height! r (cdr w.h))
|
||||
r))
|
||||
(else sr))))
|
||||
|
||||
(define (commit-resize wm client dx dy dir)
|
||||
(let* ((dpy (wm:dpy wm))
|
||||
|
|
Loading…
Reference in New Issue