Changeset 379cd75f in mainline for uspace/lib/ui/src/control.c


Ignore:
Timestamp:
2021-04-01T21:04:11Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Children:
0563982
Parents:
cd62879
Message:

Close menu when window is unfocused

This of course means we need to do all the plumbing for delivering
unfocus event to UI controls.

File:
1 edited

Legend:

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

    rcd62879 r379cd75f  
    112112}
    113113
     114/** Inform UI control that window has been unfocused.
     115 *
     116 * @param control Control
     117 */
     118void ui_control_unfocus(ui_control_t *control)
     119{
     120        if (control->ops->unfocus != NULL)
     121                control->ops->unfocus(control->ext);
     122}
     123
    114124/** @}
    115125 */
Note: See TracChangeset for help on using the changeset viewer.