i3
|
#include "all.h"
Go to the source code of this file.
Macros | |
#define | I3__FILE__ "assignments.c" |
Functions | |
void | run_assignments (i3Window *window) |
Checks the list of assignments for the given window and runs all matching ones (unless they have already been run for this specific window). More... | |
Assignment * | assignment_for (i3Window *window, int type) |
Returns the first matching assignment for the given window. More... | |
#define I3__FILE__ "assignments.c" |
Definition at line 2 of file assignments.c.
Assignment* assignment_for | ( | i3Window * | window, |
int | type | ||
) |
Returns the first matching assignment for the given window.
Definition at line 72 of file assignments.c.
References assignments, Assignment::dest, DLOG, Assignment::match, match_matches_window(), TAILQ_FOREACH, Assignment::type, and Assignment::workspace.
Referenced by manage_window().
void run_assignments | ( | i3Window * | window) |
Checks the list of assignments for the given window and runs all matching ones (unless they have already been run for this specific window).
Definition at line 19 of file assignments.c.
References assignments, Assignment::command, command_output, Assignment::dest, DLOG, Window::id, CommandResult::json_gen, Assignment::match, match_matches_window(), CommandResult::needs_tree_render, Window::nr_assignments, parse_command(), Window::ran_assignments, sasprintf(), srealloc(), TAILQ_FOREACH, tree_render(), and Assignment::type.
Referenced by manage_window(), window_update_class(), window_update_name(), window_update_name_legacy(), and window_update_role().