i3
assignments.c File Reference
#include "all.h"
Include dependency graph for assignments.c:

Go to the source code of this file.

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).
 
Assignmentassignment_for (i3Window *window, int type)
 Returns the first matching assignment for the given window.
 

Function Documentation

◆ assignment_for()

Assignment * assignment_for ( i3Window * window,
int type )

Returns the first matching assignment for the given window.

Definition at line 74 of file assignments.c.

References assignments, DLOG, Assignment::match, match_matches_window(), TAILQ_FOREACH, and Assignment::type.

Referenced by manage_window().

Here is the call graph for this function:

◆ run_assignments()

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 17 of file assignments.c.

References assignments, Assignment::command, command_result_free(), Assignment::dest, DLOG, Window::id, 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(), remanage_window(), and window_update_type().

Here is the call graph for this function: