Changeset 9e84d2c in mainline for uspace/srv/hid/display/dsops.c


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:
5823aef3
Parents:
c9927c66
git-author:
Jiri Svoboda <jiri@…> (2021-06-02 17:00:03)
git-committer:
jxsvoboda <5887334+jxsvoboda@…> (2021-06-10 13:22:33)
Message:

Popup windows event delivery is special

Popup windows don't get focus, yet they still receive events.

File:
1 edited

Legend:

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

    rc9927c66 r9e84d2c  
    11/*
    2  * Copyright (c) 2019 Jiri Svoboda
     2 * Copyright (c) 2021 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    7575        errno_t rc;
    7676        ds_client_t *client = (ds_client_t *) arg;
    77         ds_seat_t *seat;
    7877        ds_window_t *wnd;
    7978
     
    9291            wnd->id);
    9392
    94         /* XXX All the below should probably be part of ds_window_create() */
    95         wnd->dpos.x = ((wnd->id - 1) & 1) * 400;
    96         wnd->dpos.y = ((wnd->id - 1) & 2) / 2 * 300;
    97 
    98         seat = ds_display_first_seat(client->display);
    99         ds_seat_set_focus(seat, wnd);
    100         (void) ds_display_paint(wnd->display, NULL);
    101 
    10293        ds_display_unlock(client->display);
    10394
Note: See TracChangeset for help on using the changeset viewer.