From c224e1e05a25ce66af3a69bc9bd2bc849ec37442 Mon Sep 17 00:00:00 2001 From: tokyo4j Date: Fri, 26 Apr 2024 20:08:08 +0900 Subject: [PATCH] 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()`. --- include/view.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.52.0