X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fdata.h;h=cec571e9df8eecf71f10c32ebb8c2098f8770d16;hb=d91bf5d4918808ec4310411a08b08eead1e8c4f3;hp=1a67685d8d5c9e57ebf6fab51549be8e2b3fd06a;hpb=a6c6e3e3a0efdcc5423a876fff22525b5da378c3;p=i3%2Fi3 diff --git a/include/data.h b/include/data.h index 1a67685d..cec571e9 100644 --- a/include/data.h +++ b/include/data.h @@ -255,6 +255,11 @@ struct Binding { B_UPON_KEYRELEASE_IGNORE_MODS = 2, } release; + /** If this is true for a mouse binding, the binding should be executed + * when the button is pressed over any part of the window, not just the + * title bar (default). */ + bool whole_window; + uint32_t number_keycodes; /** Keycode to bind */ @@ -445,7 +450,7 @@ struct Match { /** * An Assignment makes specific windows go to a specific workspace/output or * run a command for that window. With this mechanism, the user can -- for - * example -- assign his browser to workspace "www". Checking if a window is + * example -- assign their browser to workspace "www". Checking if a window is * assigned works by comparing the Match data structure with the window (see * match_matches_window()). * @@ -455,7 +460,6 @@ struct Assignment { * * A_COMMAND = run the specified command for the matching window * A_TO_WORKSPACE = assign the matching window to the specified workspace - * A_TO_OUTPUT = assign the matching window to the specified output * * While the type is a bitmask, only one value can be set at a time. It is * a bitmask to allow filtering for multiple types, for example in the @@ -465,18 +469,16 @@ struct Assignment { enum { A_ANY = 0, A_COMMAND = (1 << 0), - A_TO_WORKSPACE = (1 << 1), - A_TO_OUTPUT = (1 << 2) + A_TO_WORKSPACE = (1 << 1) } type; /** the criteria to check if a window matches */ Match match; - /** destination workspace/output/command, depending on the type */ + /** destination workspace/command, depending on the type */ union { char *command; char *workspace; - char *output; } dest; TAILQ_ENTRY(Assignment) assignments;