mousebind: support Border context

This new context includes `Top`...`BRCorner` and makes it easier to modify
the mousebinds bound to them.
This commit is contained in:
tokyo4j 2025-09-02 08:32:23 +09:00 committed by Johan Malm
parent b5b257092d
commit 02be24bf59
6 changed files with 10 additions and 72 deletions

View file

@ -143,42 +143,7 @@ static struct mouse_combos {
const char *name, *value;
} attributes[2];
} mouse_combos[] = { {
.context = "Left",
.button = "Left",
.event = "Drag",
.action = "Resize",
}, {
.context = "Top",
.button = "Left",
.event = "Drag",
.action = "Resize",
}, {
.context = "Bottom",
.button = "Left",
.event = "Drag",
.action = "Resize",
}, {
.context = "Right",
.button = "Left",
.event = "Drag",
.action = "Resize",
}, {
.context = "TLCorner",
.button = "Left",
.event = "Drag",
.action = "Resize",
}, {
.context = "TRCorner",
.button = "Left",
.event = "Drag",
.action = "Resize",
}, {
.context = "BRCorner",
.button = "Left",
.event = "Drag",
.action = "Resize",
}, {
.context = "BLCorner",
.context = "Border",
.button = "Left",
.event = "Drag",
.action = "Resize",

View file

@ -53,6 +53,7 @@ enum ssd_part_type {
LAB_SSD_PART_RIGHT,
LAB_SSD_PART_BOTTOM,
LAB_SSD_PART_LEFT,
LAB_SSD_PART_BORDER,
LAB_SSD_CLIENT,
LAB_SSD_FRAME,