Changeset 6baab83 in mainline for uspace/lib/ui/src/popup.c
- Timestamp:
- 2021-05-27T17:00:30Z (3 years ago)
- Children:
- b4b4dafe
- Parents:
- f2416ec3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/popup.c
rf2416ec3 r6baab83 78 78 ui_window_t *window = NULL; 79 79 ui_wnd_params_t wparams; 80 gfx_coord2_t parent_pos; 80 81 errno_t rc; 81 82 … … 83 84 if (popup == NULL) 84 85 return ENOMEM; 86 87 rc = ui_window_get_pos(parent, &parent_pos); 88 if (rc != EOK) 89 goto error; 85 90 86 91 ui_wnd_params_init(&wparams); … … 88 93 wparams.caption = ""; 89 94 wparams.style &= ~ui_wds_decorated; 95 wparams.placement = ui_wnd_place_popup; 96 97 /* Compute position of parent rectangle relative to the screen */ 98 gfx_rect_translate(&parent_pos, ¶ms->place, &wparams.prect); 90 99 91 100 rc = ui_window_create(ui, &wparams, &window);
Note:
See TracChangeset
for help on using the changeset viewer.