Changeset 6baab83 in mainline for uspace/lib/ui/src/menu.c


Ignore:
Timestamp:
2021-05-27T17:00:30Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Children:
b4b4dafe
Parents:
f2416ec3
Message:

Set menu popup position based on parent window position

Added a method for getting the position of a display window.
This is then combined with the menu bar entry rectangle (which is
relative to the parent window) to compute a screen-relative
rectangle close to which the popup should be placed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/menu.c

    rf2416ec3 r6baab83  
    245245        ui_popup_params_init(&params);
    246246        params.rect = geom.outer_rect;
     247        params.place = *prect;
    247248
    248249        rc = ui_popup_create(menu->mbar->ui, menu->mbar->window, &params,
Note: See TracChangeset for help on using the changeset viewer.