From 24f39e3a41b50cca3f0c26bada9295a3b39ded9e Mon Sep 17 00:00:00 2001 From: tokyo4j Date: Wed, 17 Sep 2025 16:25:32 +0900 Subject: [PATCH] default-bindings.h: set combine="yes" for SnapToEdge keybinds --- docs/labwc-config.5.scd | 2 +- docs/rc.xml.all | 8 ++++---- include/config/default-bindings.h | 16 ++++++++++++++++ 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/docs/labwc-config.5.scd b/docs/labwc-config.5.scd index a854d886..7ddf2d5b 100644 --- a/docs/labwc-config.5.scd +++ b/docs/labwc-config.5.scd @@ -727,7 +727,7 @@ extending outward from the snapped edge. W-Return - lab-sensible-terminal A-F4 - close window W-a - toggle maximize - W- - resize window to fill half the output + W- - resize window to fill half or quarter of the output A-Space - show window menu ``` diff --git a/docs/rc.xml.all b/docs/rc.xml.all index a96993ab..12d0c761 100644 --- a/docs/rc.xml.all +++ b/docs/rc.xml.all @@ -271,16 +271,16 @@ - + - + - + - + diff --git a/include/config/default-bindings.h b/include/config/default-bindings.h index 08caeade..9d42d237 100644 --- a/include/config/default-bindings.h +++ b/include/config/default-bindings.h @@ -35,6 +35,10 @@ static struct key_combos { .name = "direction", .value = "left", }, + .attributes[1] = { + .name = "combine", + .value = "yes", + }, }, { .binding = "W-Right", .action = "SnapToEdge", @@ -42,6 +46,10 @@ static struct key_combos { .name = "direction", .value = "right", }, + .attributes[1] = { + .name = "combine", + .value = "yes", + }, }, { .binding = "W-Up", .action = "SnapToEdge", @@ -49,6 +57,10 @@ static struct key_combos { .name = "direction", .value = "up", }, + .attributes[1] = { + .name = "combine", + .value = "yes", + }, }, { .binding = "W-Down", .action = "SnapToEdge", @@ -56,6 +68,10 @@ static struct key_combos { .name = "direction", .value = "down", }, + .attributes[1] = { + .name = "combine", + .value = "yes", + }, }, { .binding = "A-Space", .action = "ShowMenu",