Changeset b4b4dafe in mainline for uspace/lib/ui/src


Ignore:
Timestamp:
2021-06-03T14:02:59Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Children:
2e6394e
Parents:
6baab83
git-author:
Jiri Svoboda <jiri@…> (2021-06-02 17:00:03)
git-committer:
Jiri Svoboda <jiri@…> (2021-06-03 14:02:59)
Message:

Popup windows event delivery is special

Popup windows don't get focus, yet they still receive events.

Location:
uspace/lib/ui/src
Files:
2 edited

Legend:

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

    r6baab83 rb4b4dafe  
    9494        wparams.style &= ~ui_wds_decorated;
    9595        wparams.placement = ui_wnd_place_popup;
     96        wparams.flags |= ui_wndf_popup;
    9697
    9798        /* Compute position of parent rectangle relative to the screen */
  • uspace/lib/ui/src/window.c

    r6baab83 rb4b4dafe  
    188188        gfx_rect_dims(&params->rect, &dparams.min_size);
    189189
     190        if ((params->flags & ui_wndf_popup) != 0)
     191                dparams.flags |= wndf_popup;
     192
    190193        if (ui->display != NULL) {
    191194                if (params->placement != ui_wnd_place_default) {
Note: See TracChangeset for help on using the changeset viewer.