optimized redrawing
This commit is contained in:
parent
17b4f5e624
commit
da76ea4b48
|
@ -199,7 +199,8 @@
|
||||||
(draw-resizer r)
|
(draw-resizer r)
|
||||||
(drag r r (button-event-x e) (button-event-y e))))
|
(drag r r (button-event-x e) (button-event-y e))))
|
||||||
((expose-event? e)
|
((expose-event? e)
|
||||||
(draw-resizer-window)
|
(if (= 0 (expose-event-count e))
|
||||||
|
(draw-resizer-window))
|
||||||
(idle))
|
(idle))
|
||||||
((destroy-window-event? e) #t)
|
((destroy-window-event? e) #t)
|
||||||
(else (idle))))))
|
(else (idle))))))
|
||||||
|
@ -222,7 +223,8 @@
|
||||||
(- (button-event-y e) start-y))
|
(- (button-event-y e) start-y))
|
||||||
(idle))
|
(idle))
|
||||||
((expose-event? e)
|
((expose-event? e)
|
||||||
(draw-resizer-window)
|
(if (= 0 (expose-event-count e))
|
||||||
|
(draw-resizer-window))
|
||||||
(drag start-rect last-rect start-x start-y))
|
(drag start-rect last-rect start-x start-y))
|
||||||
((destroy-window-event? e) #t)
|
((destroy-window-event? e) #t)
|
||||||
(else
|
(else
|
||||||
|
|
|
@ -43,7 +43,8 @@
|
||||||
(lambda (xevent)
|
(lambda (xevent)
|
||||||
(cond
|
(cond
|
||||||
((expose-event? xevent)
|
((expose-event? xevent)
|
||||||
(draw-titlebar tb options gc))
|
(if (= 0 (expose-event-count xevent))
|
||||||
|
(draw-titlebar tb options gc)))
|
||||||
((destroy-window-event? xevent)
|
((destroy-window-event? xevent)
|
||||||
(exit)))))
|
(exit)))))
|
||||||
(wrap (receive-rv in-channel)
|
(wrap (receive-rv in-channel)
|
||||||
|
|
Loading…
Reference in New Issue