mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-15 10:38:32 +00:00
468bd0b9c8
The current test client code waits for all wl_seat globals to arrive before checking them and deciding which one is the test seat global to use for the input object. Test code that needs to add/remove test seats would have to call the client_set_input() function for any seat changes to take effect. Although we could allow this by making client_set_input() public, we would be exposing unecessary implementation details. This commit applies any seat changes immediately upon arrival of the seat name, freeing test code from needing to call extra functions like client_set_input(). To achieve this the call to input_data_devices() is moved from client_set_input() to the seat name event handler. This commit also moves the check that all seats have names to an explicit test. To support this test, inputs corresponding to non-test seats are not destroyed (unless their seat global is removed), as was previously the case. Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> |
||
---|---|---|
.. | ||
reference | ||
.gitignore | ||
bad-buffer-test.c | ||
config-parser-test.c | ||
devices-test.c | ||
event-test.c | ||
internal-screenshot-test.c | ||
internal-screenshot.ini | ||
ivi-shell-app-test.c | ||
ivi-test.h | ||
ivi_layout-internal-test.c | ||
ivi_layout-test-plugin.c | ||
ivi_layout-test.c | ||
keyboard-test.c | ||
matrix-test.c | ||
plugin-registry-test.c | ||
pointer-test.c | ||
presentation-test.c | ||
roles-test.c | ||
setbacklight.c | ||
string-test.c | ||
subsurface-shot-test.c | ||
subsurface-test.c | ||
surface-global-test.c | ||
surface-screenshot.c | ||
surface-test.c | ||
text-test.c | ||
timespec-test.c | ||
touch-test.c | ||
vertex-clip-test.c | ||
viewporter-test.c | ||
weston-test-client-helper.c | ||
weston-test-client-helper.h | ||
weston-test-desktop-shell.c | ||
weston-test-runner.c | ||
weston-test-runner.h | ||
weston-test.c | ||
weston-tests-env | ||
xwayland-test.c |