X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Frandr.h;h=dadcfd64912bf55836d3486014582e4ef87da9e1;hb=6582da993948c392daeaf4be018546e9186effb0;hp=8222b99ac886520b8b1a5c7763a3e6ea0895d1f8;hpb=d5358a749e3f4eed45144a2c78032c4163ea2367;p=i3%2Fi3 diff --git a/include/randr.h b/include/randr.h index 8222b99a..dadcfd64 100644 --- a/include/randr.h +++ b/include/randr.h @@ -87,6 +87,16 @@ Output *get_output_by_name(const char *name); */ Output *get_output_containing(int x, int y); +/* + * In contained_by_output, we check if any active output contains part of the container. + * We do this by checking if the output rect is intersected by the Rect. + * This is the 2-dimensional counterpart of get_output_containing. + * Since we don't actually need the outputs intersected by the given Rect (There could + * be many), we just return true or false for convenience. + * + */ +bool contained_by_output(Rect rect); + /** * Gets the output which is the next one in the given direction. *