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

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

Macro Definition Documentation

#define I3__FILE__   "assignments.c"

Definition at line 2 of file assignments.c.

Function Documentation

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().

Here is the call graph for this function:

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_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(), window_update_class(), window_update_name(), window_update_name_legacy(), and window_update_role().

Here is the call graph for this function: