Changeset b0a94854 in mainline for uspace/srv/hid/display/seat.c


Ignore:
Timestamp:
2020-02-19T13:28:34Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0a052b0
Parents:
e1f2079
git-author:
Jiri Svoboda <jiri@…> (2020-01-18 18:28:21)
git-committer:
Jiri Svoboda <jiri@…> (2020-02-19 13:28:34)
Message:

Deliver window focus and unfocus events

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/seat.c

    re1f2079 rb0a94854  
    8383void ds_seat_set_focus(ds_seat_t *seat, ds_window_t *wnd)
    8484{
     85        if (seat->focus != NULL)
     86                ds_window_post_unfocus_event(seat->focus);
     87
    8588        seat->focus = wnd;
     89
     90        if (wnd != NULL)
     91                ds_window_post_focus_event(wnd);
    8692}
    8793
Note: See TracChangeset for help on using the changeset viewer.