MCPcopy Create free account
hub / github.com/KDE/kwin / windowActionForTabletButtonPress

Function windowActionForTabletButtonPress

src/input.cpp:1344–1352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1342}
1343
1344static std::optional<Options::MouseCommand> windowActionForTabletButtonPress(TabletToolButtonEvent *event, Window *window)
1345{
1346 const auto button = event->button == BTN_STYLUS ? Qt::MiddleButton : Qt::RightButton;
1347 if (const auto command = globalWindowAction(button, input()->modifiersRelevantForGlobalShortcuts())) {
1348 return command;
1349 } else {
1350 return window->getMousePressCommand(button);
1351 }
1352}
1353
1354std::optional<Options::MouseCommand> globalWindowWheelAction(PointerAxisEvent *event)
1355{

Callers 1

tabletToolButtonEventMethod · 0.85

Calls 4

globalWindowActionFunction · 0.85
inputFunction · 0.85
getMousePressCommandMethod · 0.80

Tested by

no test coverage detected