Changeset 5d380b6 in mainline for uspace/lib/ui/test/menuentry.c


Ignore:
Timestamp:
2023-01-20T11:50:41Z (23 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/lib/ui/test/menuentry.c

    r6828a56 r5d380b6  
    11/*
    2  * Copyright (c) 2021 Jiri Svoboda
     2 * Copyright (c) 2023 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    381381        prect.p1.y = 0;
    382382
    383         rc = ui_menu_open(menu, &prect);
     383        rc = ui_menu_open(menu, &prect, 0);
    384384        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    385385
     
    492492        prect.p1.y = 0;
    493493
    494         rc = ui_menu_open(menu, &prect);
     494        rc = ui_menu_open(menu, &prect, 0);
    495495        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    496496
     
    555555        prect.p1.y = 0;
    556556
    557         rc = ui_menu_open(menu, &prect);
     557        rc = ui_menu_open(menu, &prect, 0);
    558558        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    559559
     
    623623        prect.p1.y = 0;
    624624
    625         rc = ui_menu_open(menu, &prect);
     625        rc = ui_menu_open(menu, &prect, 0);
    626626        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    627627
     
    695695        prect.p1.y = 0;
    696696
    697         rc = ui_menu_open(menu, &prect);
     697        rc = ui_menu_open(menu, &prect, 0);
    698698        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    699699
     
    750750        prect.p1.y = 0;
    751751
    752         rc = ui_menu_open(menu, &prect);
     752        rc = ui_menu_open(menu, &prect, 0);
    753753        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    754754
     
    810810        prect.p1.y = 0;
    811811
    812         rc = ui_menu_open(menu, &prect);
     812        rc = ui_menu_open(menu, &prect, 0);
    813813        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    814814
     
    870870        prect.p1.y = 0;
    871871
    872         rc = ui_menu_open(menu, &prect);
     872        rc = ui_menu_open(menu, &prect, 0);
    873873        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    874874
     
    933933        prect.p1.y = 0;
    934934
    935         rc = ui_menu_open(menu, &prect);
     935        rc = ui_menu_open(menu, &prect, 0);
    936936        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    937937
Note: See TracChangeset for help on using the changeset viewer.