Programming environment for editing various of my live apps without restarting them.

bugfix: keep Viewport dimensions more up to date

Scenario:

  1. I connect to carousel.love
  2. I try to press C-n, nothing seems to happen
  3. I quit and restart and get this cryptic error:
SDL error: window too large

  "width": 19103,
  "height": 9849.984375

I can manually edit config to adjust width and height and restart driver.love.

I don't really understand all the details of how this comes about.

While investigating this, however, I noticed one thing: in step 2 the new node is indeed being spawned, it's just happening out of viewport because Viewport dimensions are much larger than the window.

Once I started looking for it, I noticed this stale information in many apps.

Let's see if keeping viewport dimensions up to date causes the scenario above to stop occurring.

Created by  akkartik  on December 17, 2023
KSMOA4U6PUIUQNFGOQCST6DCLWJ5NYRSIIFG76263ZQXSWHUB3SAC
Change contents