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.
wilder/Plasma/6.2
Joshua Goins 2 years ago committed by Joshua Goins
parent 423a3e8b44
commit fd670453e5
  1. 2
      autotests/integration/buttonrebind_test.cpp

@ -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++);

Loading…
Cancel
Save