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

Function windowActionForPointerButtonPress

src/input.cpp:1315–1324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1313}
1314
1315static std::optional<Options::MouseCommand> windowActionForPointerButtonPress(PointerButtonEvent *event, Window *window)
1316{
1317 if (!input()->pointer()->isConstrained()) {
1318 if (const auto command = globalWindowAction(event->button, event->modifiersRelevantForShortcuts)) {
1319 return command;
1320 }
1321 }
1322
1323 return window->getMousePressCommand(event->button);
1324}
1325
1326static std::optional<Options::MouseCommand> windowActionForTouchDown(Window *window)
1327{

Callers 1

pointerButtonMethod · 0.85

Calls 4

inputFunction · 0.85
globalWindowActionFunction · 0.85
getMousePressCommandMethod · 0.80
pointerMethod · 0.45

Tested by

no test coverage detected