diff --git a/lib/rabbit/renderer/screen.rb b/lib/rabbit/renderer/screen.rb index cb778f02..1c7635b2 100644 --- a/lib/rabbit/renderer/screen.rb +++ b/lib/rabbit/renderer/screen.rb @@ -79,7 +79,11 @@ def initialize(canvas) def attach_to(window, container=nil) super - @window.add(@fixed) + if container + container.add(@fixed) + else + @window.child = @fixed + end @fixed.show attach_key(@window) end