Bug fixes.
Disabled capturing when changing resolution.

Might be off here, but without capturing it seems like we get a
behaviour closer to that of the PC.
Better handling of maximized window.

Used the “zoom” command before, but it has some limitations (e.g. no
event when zoom is done).