lib/glimmer/swt/custom/drawable.rb in glimmer-dsl-swt-4.20.13.0 vs lib/glimmer/swt/custom/drawable.rb in glimmer-dsl-swt-4.20.13.1
- old
+ new
@@ -118,9 +118,13 @@
shape_painting_work = lambda do |paint_event|
paintable_shapes = @image_double_buffered ? image_buffered_shapes : shapes
paintable_shapes.each do |shape|
shape.paint(paint_event)
end
+ # When dragging, render dragged shape again on top of everything else.
+ if !@image_double_buffered && Glimmer::SWT::Custom::Shape.dragging?
+ Glimmer::SWT::Custom::Shape.dragged_shape.paint(paint_event)
+ end
end
if @image_double_buffered
if @image_proxy_buffer.nil?
swt_image = Image.new(DisplayProxy.instance.swt_display, bounds.width, bounds.height)
@image_proxy_buffer = ImageProxy.new(swt_image: swt_image)