Skip to content

Commit

Permalink
screen: add support for container
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Sep 25, 2024
1 parent d8dc67b commit 9bd01cf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/rabbit/renderer/screen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9bd01cf

Please sign in to comment.