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


Ignore:
Timestamp:
2021-06-04T10:03:24Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Children:
4055fe63
Parents:
b4b4dafe
git-author:
Jiri Svoboda <jiri@…> (2021-06-03 17:03:11)
git-committer:
Jiri Svoboda <jiri@…> (2021-06-04 10:03:24)
Message:

Fix delivery of release events to popup window

File:
1 edited

Legend:

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

    rb4b4dafe r2e6394e  
    432432         * below, anyway.
    433433         */
    434         if (seat->popup != wnd && seat->popup != NULL) {
     434        if (seat->popup != NULL) {
    435435                rc = ds_window_post_pos_event(seat->popup, event);
    436436                if (rc != EOK)
     
    452452                ds_seat_set_client_cursor(seat, wnd->cursor);
    453453
    454                 rc = ds_window_post_pos_event(wnd, event);
    455                 if (rc != EOK)
    456                         return rc;
     454                /*
     455                 * Only deliver event if we didn't already deliver it
     456                 * to the same window above.
     457                 */
     458                if (wnd != seat->popup) {
     459                        rc = ds_window_post_pos_event(wnd, event);
     460                        if (rc != EOK)
     461                                return rc;
     462                }
    457463        } else {
    458464                /* Not over a window */
Note: See TracChangeset for help on using the changeset viewer.