shims: Set capi.screen.primary.

This is used as a fallback when some objects go out of screen.
This commit is contained in:
Emmanuel Lepage Vallee 2019-03-10 15:00:57 -04:00
parent 0c53d76f25
commit 59e2ae6800
1 changed files with 1 additions and 0 deletions

View File

@ -136,6 +136,7 @@ screen._add_screen {width=320, height=240}
screen._grid_vertical_margin = 10
screen._grid_horizontal_margin = 10
screen.primary = screen[1]
function screen.count()
return screen._count