Changeset a6492460 in mainline for uspace/app/taskbar/wndlist.c


Ignore:
Timestamp:
2022-11-09T16:17:59Z (2 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
88d828e
Parents:
54593f3
Message:

Pass ID of device that clicked the window button to activate window

To ensure the correct seat's focus is switched.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/taskbar/wndlist.c

    r54593f3 ra6492460  
    448448 *
    449449 * @param pbutton Push button
    450  * @param arg Argument (wdnlist_entry_t *)
     450 * @param arg Argument (wndlist_entry_t *)
    451451 */
    452452static void wndlist_button_clicked(ui_pbutton_t *pbutton, void *arg)
    453453{
    454454        wndlist_entry_t *entry = (wndlist_entry_t *)arg;
    455         sysarg_t seat_id;
    456 
    457         seat_id = 0; // TODO Multi-seat
     455        sysarg_t dev_id;
     456
     457        /* ID of device that clicked the button */
     458        dev_id = entry->wndlist->ev_pos_id;
    458459
    459460        (void) wndmgt_activate_window(entry->wndlist->wndmgt,
    460             seat_id, entry->wnd_id);
     461            dev_id, entry->wnd_id);
    461462}
    462463
Note: See TracChangeset for help on using the changeset viewer.