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


Ignore:
Timestamp:
2020-02-19T17:04:40Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1388f7f0
Parents:
0a052b0
Message:

Tone down on message verbosity

File:
1 edited

Legend:

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

    r0a052b0 r6c2aba3  
    256256 * @return EOK on success or an error code
    257257 */
    258 #include <stdio.h>
    259258errno_t ds_seat_post_ptd_event(ds_seat_t *seat, ptd_event_t *event)
    260259{
     
    265264        errno_t rc;
    266265
    267         printf("ds_seat_post_ptd_event\n");
    268266        wnd = ds_display_window_by_pos(seat->display, &seat->pntpos);
    269267
    270268        /* Focus window on button press */
    271269        if (event->type == PTD_PRESS && event->btn_num == 1) {
    272                 printf("PTD_PRESS (button = %d)\n", event->btn_num);
    273270                if (wnd != NULL) {
    274                         printf("set focus\n");
    275271                        ds_seat_set_focus(seat, wnd);
    276272                }
     
    291287
    292288        if (event->type == PTD_MOVE) {
    293                 printf("PTD_MOVE\n");
    294 
    295289                gfx_coord2_add(&seat->pntpos, &event->dmove, &npos);
    296290                gfx_coord2_clip(&npos, &disp->rect, &npos);
    297291
    298                 printf("clear pointer\n");
    299292                (void) ds_seat_clear_pointer(seat);
    300293                seat->pntpos = npos;
     
    310303                        return rc;
    311304
    312                 printf("draw pointer\n");
    313305                (void) ds_seat_draw_pointer(seat);
    314306        }
     
    329321        errno_t rc;
    330322
    331         printf("ds_seat_post_pos_event\n");
    332 
    333323        wnd = ds_display_window_by_pos(seat->display, &seat->pntpos);
    334324        if (wnd != NULL) {
    335                 printf("send event to window at pointer position\n");
    336325                rc = ds_window_post_pos_event(wnd, event);
    337326                if (rc != EOK)
     
    340329
    341330        if (seat->focus != wnd) {
    342                 printf("send event to focused window\n");
    343 
    344331                rc = ds_window_post_pos_event(seat->focus, event);
    345332                if (rc != EOK)
Note: See TracChangeset for help on using the changeset viewer.