Changeset a6492460 in mainline for uspace/lib


Ignore:
Timestamp:
2022-11-09T16:17:59Z (3 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.

Location:
uspace/lib/wndmgt/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/wndmgt/src/wndmgt.c

    r54593f3 ra6492460  
    287287 *
    288288 * @param wndmgt Window management session
    289  * @param seat_id Seat ID
     289 * @param dev_id ID of input device belonging to seat whose
     290 *               focus is to be switched
    290291 * @param wnd_id Window ID
    291292 * @return EOK on success or an error code
    292293 */
    293 errno_t wndmgt_activate_window(wndmgt_t *wndmgt, sysarg_t seat_id,
     294errno_t wndmgt_activate_window(wndmgt_t *wndmgt, sysarg_t dev_id,
    294295    sysarg_t wnd_id)
    295296{
     
    298299
    299300        exch = async_exchange_begin(wndmgt->sess);
    300         rc = async_req_2_0(exch, WNDMGT_ACTIVATE_WINDOW, seat_id,
     301        rc = async_req_2_0(exch, WNDMGT_ACTIVATE_WINDOW, dev_id,
    301302            wnd_id);
    302303
  • uspace/lib/wndmgt/src/wndmgt_srv.c

    r54593f3 ra6492460  
    204204static void wndmgt_activate_window_srv(wndmgt_srv_t *srv, ipc_call_t *icall)
    205205{
    206         sysarg_t seat_id;
     206        sysarg_t dev_id;
    207207        sysarg_t wnd_id;
    208208        errno_t rc;
    209209
    210         seat_id = ipc_get_arg1(icall);
     210        dev_id = ipc_get_arg1(icall);
    211211        wnd_id = ipc_get_arg2(icall);
    212212
     
    216216        }
    217217
    218         rc = srv->ops->activate_window(srv->arg, seat_id, wnd_id);
     218        rc = srv->ops->activate_window(srv->arg, dev_id, wnd_id);
    219219        async_answer_0(icall, rc);
    220220}
Note: See TracChangeset for help on using the changeset viewer.