Commit Graph

2 Commits

Author SHA1 Message Date
Kartik K. Agaram 118cc6dced Merge driver.love 2023-12-17 14:31:31 -08:00
Kartik K. Agaram c3df57ce61 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.
2023-12-17 13:16:08 -08:00