MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / _validate_position

Method _validate_position

plugins/window-rules/view-action-interface.cpp:359–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357}
358
359std::tuple<bool, int, int> view_action_interface_t::_validate_position(
360 const std::vector<variant_t> & args)
361{
362 auto arg_x = _expect_int(args, 0);
363 auto arg_y = _expect_int(args, 1);
364
365 if (std::get<0>(arg_x) && std::get<0>(arg_y))
366 {
367 return {true, std::get<1>(arg_x), std::get<1>(arg_y)};
368 }
369
370 LOGE("View action interface: Invalid arguments. Expected 'move int int.");
371
372 return {false, 0, 0};
373}
374
375std::tuple<bool, int, int> view_action_interface_t::_validate_size(
376 const std::vector<variant_t> & args)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected