X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fassignments.h;h=b83ee03faab0c3252e49c1f625048c417b9bb96c;hb=10d7c1a993433ba7149704933f6d8b62cd4401f7;hp=ecd8b8082f9462af6f43001cc3c27c778e7fd530;hpb=5ae4620a2484a390dd63642ba66fbb4ca09cbd21;p=i3%2Fi3 diff --git a/include/assignments.h b/include/assignments.h index ecd8b808..b83ee03f 100644 --- a/include/assignments.h +++ b/include/assignments.h @@ -1,9 +1,13 @@ /* * vim:ts=4:sw=4:expandtab * + * i3 - an improved dynamic tiling window manager + * © 2009-2011 Michael Stapelberg and contributors (see also: LICENSE) + * + * assignments.c: Assignments for specific windows (for_window). + * */ -#ifndef _ASSIGNMENTS_H -#define _ASSIGNMENTS_H +#pragma once /** * Checks the list of assignments for the given window and runs all matching @@ -12,4 +16,8 @@ */ void run_assignments(i3Window *window); -#endif +/** + * Returns the first matching assignment for the given window. + * + */ +Assignment *assignment_for(i3Window *window, int type);