Changeset 5823aef3 in mainline


Ignore:
Timestamp:
2021-06-10T13:22:33Z (3 years ago)
Author:
jxsvoboda <5887334+jxsvoboda@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d7f82635
Parents:
9e84d2c
git-author:
Jiri Svoboda <jiri@…> (2021-06-03 17:03:11)
git-committer:
jxsvoboda <5887334+jxsvoboda@…> (2021-06-10 13:22:33)
Message:

Fix delivery of release events to popup window

File:
1 edited

Legend:

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

    r9e84d2c r5823aef3  
    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.