geigi / cozy

🎧 Listen to audio books 📚 on Linux
https://cozy.sh
GNU General Public License v3.0
1.08k stars 83 forks source link

Resizing window is laggy #843

Open rdbende opened 6 months ago

rdbende commented 6 months ago

Bug description

Resizing Cozy's main window is laggy, as it constantly calls _on_window_size_allocate (even worse: it is called once for both horizontal and vertical size change) to save the window's size and state. This results in the settings being saved, and unnecessary file write operations to ~/.var/app/com.github.geigi.cozy/config/glib-2.0/settings/keyfile

Cozy should only save this information on quit.

Steps to reproduce

Resize Cozy's main window

System Information