| 1313 | } |
| 1314 | |
| 1315 | static 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 | |
| 1326 | static std::optional<Options::MouseCommand> windowActionForTouchDown(Window *window) |
| 1327 | { |
no test coverage detected