cogentcore / core

A free and open source framework for building powerful, fast, and elegant 2D and 3D apps that run on macOS, Windows, Linux, iOS, Android, and the Web with a single pure Go codebase, allowing you to Code Once, Run Everywhere.
http://cogentcore.org/core
BSD 3-Clause "New" or "Revised" License
1.31k stars 71 forks source link

resizing windows on mac used to re-render continuously, now does not #901

Closed rcoreilly closed 4 months ago

rcoreilly commented 4 months ago

Describe the bug

see title

How to reproduce

resize a window

Example code

No response

Relevant output

No response

Platform

macOS

kkoreilly commented 4 months ago

This happened at some point between v0.0.3 and v0.0.4

kkoreilly commented 4 months ago

This regression was introduced in 8c932de.

kkoreilly commented 4 months ago

The cause of this issue is that OnShow is being called every time the window is resized, so we are spamming the title update and preventing normal resizing.