Use fullscreen element stack instead of fullscreen enabled flag.

Fixes #38.

@annevk and @marcoscaceres WDYT?