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()`.
This commit is contained in:
tokyo4j 2024-04-26 20:08:08 +09:00 committed by Consolatis
parent 5be28d8b56
commit c224e1e05a

View file

@ -3,14 +3,15 @@
#define LABWC_VIEW_H
#include "config.h"
#include "ssd.h"
#include <stdbool.h>
#include <stdint.h>
#include <wayland-util.h>
#include <wlr/util/box.h>
#include <xkbcommon/xkbcommon.h>
#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