~andreas-pokorny/mir/fix-1672955

« back to all changes in this revision

Viewing changes to tests/unit-tests/scene/test_surface_stack.cpp

Map Touchscreen to Output: Allow clients to configure a relation between touchscreen and display outputs

When configured the touch contact coordinates will be mapped into the screen space occupied by the output. Previously the first output was used as default and orientation information was ignored. This default behavior is still in place - when not configured the builtin output on android devices will be used. Additionally the connection between input devices and outputs is used to disable input events from deactivated outputs. Fixes: https://bugs.launchpad.net/bugs/1349660.

Approved by mir-ci-bot, Alan Griffiths.

Show diffs side-by-side

added added

removed removed

Lines of Context:
989
989
    stack.emit_scene_changed();
990
990
}
991
991
 
992
 
TEST_F(SurfaceStack, only_enumerates_exposed_input_surfaces)
 
992
TEST_F(SurfaceStack, for_each_enumerates_all_input_surfaces)
993
993
{
994
994
    using namespace ::testing;
995
995
 
1007
1007
    };
1008
1008
 
1009
1009
    stack.for_each(count_exposed_surfaces);
1010
 
    EXPECT_THAT(num_exposed_surfaces, Eq(1));
 
1010
    EXPECT_THAT(num_exposed_surfaces, Eq(3));
1011
1011
}
1012
1012
 
1013
1013
using namespace ::testing;