mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
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:
parent
5be28d8b56
commit
c224e1e05a
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue