Changeset 4b72e81 in mainline for uspace/srv/hid/display/client.h


Ignore:
Timestamp:
2021-06-09T11:56:03Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Children:
1bebc906
Parents:
4055fe63
git-author:
Jiri Svoboda <jiri@…> (2021-06-08 17:55:50)
git-committer:
Jiri Svoboda <jiri@…> (2021-06-09 11:56:03)
Message:

Purge events from client event queue when destroying window

If the client had events queued for a particular window and that got
destroyed, later these events, pointing to freed (and reused) memory
would be handed to the client with the wrong window ID (which was
read from the wrong/recycled memory block).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/client.h

    r4055fe63 r4b72e81  
    5353extern errno_t ds_client_get_event(ds_client_t *, ds_window_t **,
    5454    display_wnd_ev_t *);
     55extern void ds_client_purge_window_events(ds_client_t *, ds_window_t *);
    5556extern errno_t ds_client_post_close_event(ds_client_t *, ds_window_t *);
    5657extern errno_t ds_client_post_focus_event(ds_client_t *, ds_window_t *);
Note: See TracChangeset for help on using the changeset viewer.