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


Ignore:
Timestamp:
2020-06-09T19:52:45Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
28f8f6f2
Parents:
84e74ea
Message:

Only deliver release events to the focused window

File:
1 edited

Legend:

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

    r84e74ea rbc492d5  
    384384
    385385        wnd = ds_display_window_by_pos(seat->display, &seat->pntpos);
     386
     387        if (seat->focus != wnd) {
     388                rc = ds_window_post_pos_event(seat->focus, event);
     389                if (rc != EOK)
     390                        return rc;
     391
     392                /* Only deliver release events to the focused window */
     393                if (event->type == POS_RELEASE)
     394                        return EOK;
     395        }
     396
    386397        if (wnd != NULL) {
    387398                /* Moving over a window */
     
    396407        }
    397408
    398         if (seat->focus != wnd) {
    399                 rc = ds_window_post_pos_event(seat->focus, event);
    400                 if (rc != EOK)
    401                         return rc;
    402         }
    403 
    404409        return EOK;
    405410}
Note: See TracChangeset for help on using the changeset viewer.