feat: add SYS_FUTEX_WAIT and SYS_FUTEX_WAKE syscalls; revamp desktop application categories

This commit is contained in:
daniel committed 2026-10-13 07:11:39 +02:00
1 parent 60ca9c78c7
commit abfd9de8f6
35 files changed
+545 -70

No files matched your search

+6 -6
View File
@@ -360,16 +360,16 @@ void gui::desktop_handle_mouse(DesktopState* ds) {
if (menu_rect.contains(mx, my)) {
// Walk visible rows to find which one was clicked
int iy = menu_y + 5;
int cur_cat = -1;
bool cat_expanded = true;
for (int i = 0; i < menu_row_count; i++) {
const MenuRow& row = menu_rows[i];
if (row.is_category) cur_cat++;
if (!menu_row_visible(i)) continue;
MenuRow& row = menu_rows[i];
if (row.is_category) cat_expanded = row.expanded;
else if (!cat_expanded) continue;
int row_h = menu_row_height(row);
if (my >= iy && my < iy + row_h) {
if (row.is_category && row.label[0] && cur_cat >= 0 && cur_cat < MENU_NUM_CATS - 1) {
if (row.is_category && row.label[0]) {
// Toggle category expand/collapse
menu_cat_expanded[cur_cat] = !menu_cat_expanded[cur_cat];
row.expanded = !row.expanded;
} else if (!row.is_category) {
if (row.external) {
if (row.launch_with_home) {