Changeset f7fb2b21 in mainline for uspace/lib/gui/window.c
- Timestamp:
- 2020-02-10T19:01:42Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b43edabe
- Parents:
- 287688f2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gui/window.c
r287688f2 rf7fb2b21 84 84 85 85 static void window_kbd_event(void *, kbd_event_t *); 86 static void window_pos_event(void *, pos_event_t *); 86 87 87 88 static display_wnd_cb_t window_cb = { 88 .kbd_event = window_kbd_event 89 .kbd_event = window_kbd_event, 90 .pos_event = window_pos_event 89 91 }; 90 92 … … 815 817 } 816 818 819 static void window_pos_event(void *arg, pos_event_t *pevent) 820 { 821 window_t *win = (window_t *) arg; 822 window_event_t *event; 823 824 event = (window_event_t *) calloc(1, sizeof(window_event_t)); 825 if (event == NULL) 826 return; 827 828 link_initialize(&event->link); 829 event->type = ET_POSITION_EVENT; 830 event->data.pos = *pevent; 831 prodcons_produce(&win->events, &event->link); 832 } 833 817 834 /** @} 818 835 */
Note:
See TracChangeset
for help on using the changeset viewer.