feat: add Music app features, fix Window Server bug

This commit is contained in:
2026-03-27 15:37:34 +01:00
parent 8f118c7a0f
commit 994c32c09d
5 changed files with 623 additions and 173 deletions
+10
View File
@@ -398,6 +398,16 @@ bool desktop_poll_external_windows(DesktopState* ds) {
for (int i = 0; i < ds->window_count; i++) {
if (ds->windows[i].external && ds->windows[i].ext_win_id == extId) {
found = true;
if (ds->windows[i].content_w != extWins[e].width ||
ds->windows[i].content_h != extWins[e].height) {
ds->windows[i].content_w = extWins[e].width;
ds->windows[i].content_h = extWins[e].height;
ds->windows[i].dirty = true;
if (ds->windows[i].state != WIN_MINIMIZED && ds->windows[i].state != WIN_CLOSED) {
changed = true;
}
}
montauk::strncpy(ds->windows[i].title, extWins[e].title, MAX_TITLE_LEN);
// Update dirty flag and cursor
if (extWins[e].dirty) {
ds->windows[i].dirty = true;