Changeset 2e1dbf7d in mainline
- Timestamp:
- 2021-04-01T22:31:15Z (3 years ago)
- Children:
- e7b32d7
- Parents:
- 0563982
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/menu.c
r0563982 r2e1dbf7d 273 273 } 274 274 275 /** Handle button pressin menu.275 /** Handle position event in menu. 276 276 * 277 277 * @param menu Menu … … 305 305 } 306 306 307 if (gfx_pix_inside_rect(&epos, &geom.outer_rect)) 307 /* Event inside menu? */ 308 if (gfx_pix_inside_rect(&epos, &geom.outer_rect)) { 309 /* Claim event */ 308 310 return ui_claimed; 311 } else { 312 /* Press outside menu - close it */ 313 if (event->type == POS_PRESS) 314 ui_menu_bar_select(menu->mbar, NULL, NULL); 315 } 309 316 310 317 return ui_unclaimed;
Note:
See TracChangeset
for help on using the changeset viewer.