From: tokyo4j Date: Fri, 26 Apr 2024 11:08:08 +0000 (+0900) Subject: view: set LAB_MIN_VIEW_WIDTH equal to total width of buttons X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=c224e1e05a25ce66af3a69bc9bd2bc849ec37442;p=proto%2Flabwc.git view: set LAB_MIN_VIEW_WIDTH equal to total width of buttons This fixes pixman error due to a negative width passed to `wlr_scene_rect_set_size()` in `ssd_titlebar_update()`. --- diff --git a/include/view.h b/include/view.h index 182a28b8..b688f104 100644 --- a/include/view.h +++ b/include/view.h @@ -3,14 +3,15 @@ #define LABWC_VIEW_H #include "config.h" +#include "ssd.h" #include #include #include #include #include -#define LAB_MIN_VIEW_WIDTH 100 -#define LAB_MIN_VIEW_HEIGHT 60 +#define LAB_MIN_VIEW_WIDTH (SSD_BUTTON_WIDTH * SSD_BUTTON_COUNT) +#define LAB_MIN_VIEW_HEIGHT 60 /* * In labwc, a view is a container for surfaces which can be moved around by