lib/glimmer/swt/shell_proxy.rb in glimmer-dsl-swt-4.18.7.7 vs lib/glimmer/swt/shell_proxy.rb in glimmer-dsl-swt-4.19.0.0
- old
+ new
@@ -72,10 +72,12 @@
@swt_widget.setLayout(FillLayout.new)
@swt_widget.setMinimumSize(WIDTH_MIN, HEIGHT_MIN)
# TODO make this an option not the default
shell_swt_display = Glimmer::SWT::DisplayProxy.instance.swt_display
on_swt_show do
- @swt_widget.set_size(@display.bounds.width, @display.bounds.height) if fill_screen
+ if @filled_screen.nil? && fill_screen # only the first time
+ @swt_widget.set_size(@display.bounds.width, @display.bounds.height)
+ end
Thread.new do
sleep(0.25)
shell_swt_display.async_exec do
@swt_widget.setActive unless @swt_widget.isDisposed
end