Changeset bc492d5 in mainline


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

Location:
uspace/srv/hid/display
Files:
2 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}
  • uspace/srv/hid/display/window.c

    r84e74ea rbc492d5  
    261261        }
    262262
    263         log_msg(LOG_DEFAULT, LVL_DEBUG, "ds_window_paint_preview");
    264         prect.p0.x, prect.p0.y, prect.p1.x, prect.p1.y);
    265 
    266263        rc = gfx_color_new_rgb_i16(0xffff, 0xffff, 0xffff, &color);
    267264        if (rc != EOK)
Note: See TracChangeset for help on using the changeset viewer.