fixed bug in assert-client-visible
This commit is contained in:
parent
4b5ff9a156
commit
4182daa61f
|
@ -288,13 +288,13 @@
|
|||
(win (client:client-window client))
|
||||
(x (window-x dpy win))
|
||||
(y (window-y dpy win))
|
||||
(w (window-width (wm:window wm)))
|
||||
(h (window-height (wm:window wm))))
|
||||
(w (window-width dpy (wm:window wm)))
|
||||
(h (window-height dpy (wm:window wm))))
|
||||
;; TODO: assert-icon-visible ...
|
||||
(if (>= x w)
|
||||
(set-window-x! win (- w 10)))
|
||||
(set-window-x! dpy win (- w 10)))
|
||||
(if (>= y h)
|
||||
(set-window-y! win (- h 10)))))
|
||||
(set-window-y! dpy win (- h 10)))))
|
||||
|
||||
(define (draw-client-window wm client gc)
|
||||
(let* ((options (wm:options wm))
|
||||
|
|
Loading…
Reference in New Issue