text: #include "sway/commands.h"
  #include "sway/tree/view.h"
  #include "util.h"
  
  struct cmd_results *cmd_allow_self_movement(int argc, char **argv) {
  	struct cmd_results *error = NULL;
  	if ((error = checkarg(argc, "allow_self_movement", EXPECTED_EQUAL_TO, 1))) {
  		return error;
  	}
  
  	struct sway_container *con = config->handler_context.container;
  
  	if (con == NULL) {
  		return cmd_results_new(CMD_FAILURE, "No current container");
  	}
  	if (con->view) {
  		con->view->allow_self_movement = parse_boolean(argv[0],
  				con->view->allow_self_movement);
  	}
  	return cmd_results_new(CMD_SUCCESS, NULL);
  }
  