Changeset 5d380b6 in mainline for uspace/srv/hid/display/display.c


Ignore:
Timestamp:
2023-01-20T11:50:41Z (16 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b1f0a14
Parents:
6828a56
git-author:
Jiri Svoboda <jiri@…> (2023-01-20 19:50:21)
git-committer:
Jiri Svoboda <jiri@…> (2023-01-20 11:50:41)
Message:

Create menu windows in the correct seat

Add a mechanism to set the seat of a new display window, UI window,
UI popup - input device ID. This is set to the ID of the device which
activated the menu (mouse, keyboard). The display server determines
the correct seat from there.

This makes sure clicking outside closes the correct pop-up window.

File:
1 edited

Legend:

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

    r6828a56 r5d380b6  
    597597}
    598598
     599/** Get default seat in display.
     600 *
     601 * @param disp Display
     602 * @return First seat or @c NULL if there is none
     603 */
     604ds_seat_t *ds_display_default_seat(ds_display_t *disp)
     605{
     606        /* XXX Probably not the best solution */
     607        return ds_display_first_seat(disp);
     608}
     609
    599610/** Find seat by ID.
    600611 *
     
    640651
    641652        /* If none was found, return the default seat */
    642         return ds_display_first_seat(disp);
     653        return ds_display_default_seat(disp);
    643654}
    644655
Note: See TracChangeset for help on using the changeset viewer.