#include <float.h>
#include <stdarg.h>
-#ifdef I3_ASAN_ENABLED
-#include <sanitizer/lsan_interface.h>
-#endif
-
#include "shmlog.h"
// Macros to make the YAJL API a bit easier to use.
}
Output *current_output = get_output_for_con(ws);
- if (current_output == NULL) {
- yerror("Cannot get current output. This is a bug in i3.");
- return;
- }
-
Output *target_output = get_output_from_string(current_output, name);
if (!target_output) {
yerror("Could not get output from string \"%s\"", name);
return;
}
- bool success = workspace_move_to_output(ws, target_output);
- if (!success) {
- yerror("Failed to move workspace to output.");
- return;
- }
+ workspace_move_to_output(ws, target_output);
}
cmd_output->needs_tree_render = true;
*/
void cmd_exit(I3_CMD) {
LOG("Exiting due to user command.\n");
-#ifdef I3_ASAN_ENABLED
- __lsan_do_leak_check();
-#endif
- ipc_shutdown(SHUTDOWN_REASON_EXIT);
- unlink(config.ipc_socket_path);
- xcb_disconnect(conn);
exit(0);
/* unreached */