Changeset 88d828e in mainline for uspace/srv/hid/display/wmops.c


Ignore:
Timestamp:
2022-11-09T16:44:28Z (16 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
68704ab
Parents:
a6492460
git-author:
Jiri Svoboda <jiri@…> (2022-11-09 16:41:51)
git-committer:
Jiri Svoboda <jiri@…> (2022-11-09 16:44:28)
Message:

Keyboard events need device ID too + some DS multiseat work

File:
1 edited

Legend:

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

    ra6492460 r88d828e  
    171171        }
    172172
    173         // TODO Multi-seat
    174         (void) dev_id;
    175         seat = ds_display_first_seat(wnd->display);
     173        /* Determine which seat's focus should be changed */
     174        seat = ds_display_seat_by_idev(wnd->display, dev_id);
     175        if (seat == NULL) {
     176                ds_display_unlock(wmclient->display);
     177                return ENOENT;
     178        }
    176179
    177180        /* Switch focus */
Note: See TracChangeset for help on using the changeset viewer.