minimal size and formatting

This commit is contained in:
2026-01-07 20:35:41 +07:00
parent d5f736d9a6
commit b5d5793aa8
11 changed files with 63 additions and 71 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
struct absinthe_toplevel *absinthe_toplevel_at(struct absinthe_server *server, double lx, double ly, struct wlr_surface **surface, double *sx, double *sy);
void absinthe_toplevel_update_borders_geometry(struct absinthe_toplevel *toplevel);
void absinthe_toplevel_set_position(struct absinthe_toplevel *toplevel, int32_t x, int32_t y);
void absinthe_toplevel_set_size(struct absinthe_toplevel *toplevel, int32_t width, int32_t height);
void absinthe_toplevel_set_border_color(struct absinthe_toplevel *toplevel, const float color[4]);
void absinthe_toplevel_update_borders_geometry(struct absinthe_toplevel *toplevel);
+7
View File
@@ -24,8 +24,14 @@
#define ABSINTHE_BORDER_WIDTH 1
#define ABSINTHE_WINDOW_MIN_WIDTH 200
#define ABSINTHE_WINDOW_MIN_HEIGHT 200
static const float bordercolor[4] = {0.88, 0.18, 0.18, 1.0};
#define MAX(a, b) a > b ? a : b
#define MIN(a, b) a < b ? a : b
enum absinthe_cursor_mode {
ABSINTHE_CURSOR_PASSTHROUGH,
ABSINTHE_CURSOR_MOVE,
@@ -87,6 +93,7 @@ struct absinthe_server {
struct absinthe_output {
struct wl_list link;
struct absinthe_server *server;
struct wlr_box geometry;
struct wlr_output *wlr_output;
struct wl_listener frame;
struct wl_listener request_state;