ssd: eliminate corner extents and correct corner behavior

This commit is contained in:
Andrew J. Hesford 2025-01-29 10:58:44 -05:00
parent 9a473f1848
commit 11c70c716d
9 changed files with 93 additions and 82 deletions

View file

@ -3,6 +3,9 @@
#define LABWC_SSD_H
#include <wayland-server-core.h>
#include <wlr/types/wlr_cursor.h>
#include "action.h"
#include "common/border.h"
#define SSD_EXTENDED_AREA 8
@ -111,8 +114,9 @@ enum ssd_part_type ssd_at(const struct ssd *ssd,
struct wlr_scene *scene, double lx, double ly);
enum ssd_part_type ssd_get_part_type(const struct ssd *ssd,
struct wlr_scene_node *node);
uint32_t ssd_resize_edges(enum ssd_part_type type);
bool ssd_part_contains(enum ssd_part_type whole, enum ssd_part_type candidate);
uint32_t ssd_resize_edges(struct cursor_context *ctx, struct wlr_cursor *cursor);
bool ssd_part_contains(enum ssd_part_type candidate,
struct cursor_context *ctx, struct wlr_cursor *cursor);
enum ssd_mode ssd_mode_parse(const char *mode);
/* TODO: clean up / update */