X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fresize.h;h=72dffc0f55a5d66c68d376938945832dea936d9e;hb=5720ba65ab073fff40cdf89f598d560e40741967;hp=758cb4a1a28376f5e4bdd4d9d8c1ccc305fc5742;hpb=2ead7745d6e6d911d689a83140c0c16530391b50;p=i3%2Fi3 diff --git a/include/resize.h b/include/resize.h index 758cb4a1..72dffc0f 100644 --- a/include/resize.h +++ b/include/resize.h @@ -25,6 +25,13 @@ void resize_graphical_handler(Con *first, Con *second, orientation_t orientation */ bool resize_neighboring_cons(Con *first, Con *second, int px, int ppt); +/** + * Calculate the minimum percent needed for the given container to be at least 1 + * pixel. + * + */ +double percent_for_1px(Con *con); + /** * Calculate the given container's new percent given a change in pixels. *