Changeset 380e23a3 in mainline
- Timestamp:
- 2014-09-16T21:22:16Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 58f26cb
- Parents:
- 5c79fb5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/input.c
r5c79fb5 r380e23a3 90 90 static client_t *active_client = NULL; 91 91 92 /** Kernel override */ 93 static bool active = true; 94 92 95 /** List of keyboard devices */ 93 96 static list_t kbd_devs; … … 295 298 296 299 /** Arbitrate client actiovation */ 297 static void client_arbitration( client_t *req)300 static void client_arbitration(void) 298 301 { 299 302 /* Mutual exclusion of active clients */ 300 303 list_foreach(clients, link, client_t, client) 301 client->active = ( client == req);304 client->active = ((active) && (client == active_client)); 302 305 303 306 /* Notify clients about the arbitration */ … … 347 350 case INPUT_ACTIVATE: 348 351 active_client = client; 349 client_arbitration( client);352 client_arbitration(); 350 353 async_answer_0(callid, EOK); 351 354 break; … … 362 365 if (IPC_GET_ARG1(*call)) { 363 366 /* Kernel console activated */ 364 client_arbitration(NULL);367 active = false; 365 368 } else { 366 369 /* Kernel console deactivated */ 367 client_arbitration(active_client); 368 } 370 active = true; 371 } 372 373 client_arbitration(); 369 374 } 370 375
Note:
See TracChangeset
for help on using the changeset viewer.