ButtonRebindsFilter: Modify testBindingTabletTool to use proximity

This is to not destroy the tablet state for the next test (which is
added in the next commit.) We could also explicitly do a tablet tool
up/down dance here, but all we need is the tablet tool to be in
proximity for the tablet button event to fire.
This commit is contained in:
Joshua Goins 2024-07-22 21:28:24 -04:00 committed by Joshua Goins
parent 423a3e8b44
commit fd670453e5

View file

@ -227,7 +227,7 @@ void TestButtonRebind::testBindingTabletTool()
QVERIFY(enteredSpy.wait());
const QRectF startGeometry = window->frameGeometry();
Test::tabletToolEvent(InputRedirection::Tip, startGeometry.center(), 1.0, 0, 0, 0, true, false, timestamp++);
Test::tabletToolEvent(InputRedirection::Proximity, startGeometry.center(), 1.0, 0, 0, 0, false, false, timestamp++);
Test::tabletToolButtonPressed(BTN_STYLUS, timestamp++);