default-bindings.h: set combine="yes" for SnapToEdge keybinds
Some checks failed
labwc.github.io / notify (push) Has been cancelled

This commit is contained in:
tokyo4j 2025-09-17 16:25:32 +09:00 committed by Hiroaki Yamamoto
parent 2ac48116e1
commit 24f39e3a41
3 changed files with 21 additions and 5 deletions

View file

@ -727,7 +727,7 @@ extending outward from the snapped edge.
W-Return - lab-sensible-terminal
A-F4 - close window
W-a - toggle maximize
W-<arrow> - resize window to fill half the output
W-<arrow> - resize window to fill half or quarter of the output
A-Space - show window menu
```

View file

@ -271,16 +271,16 @@
<action name="ToggleMaximize" />
</keybind>
<keybind key="W-Left">
<action name="SnapToEdge" direction="left" />
<action name="SnapToEdge" direction="left" combine="yes" />
</keybind>
<keybind key="W-Right">
<action name="SnapToEdge" direction="right" />
<action name="SnapToEdge" direction="right" combine="yes" />
</keybind>
<keybind key="W-Up">
<action name="SnapToEdge" direction="up" />
<action name="SnapToEdge" direction="up" combine="yes" />
</keybind>
<keybind key="W-Down">
<action name="SnapToEdge" direction="down" />
<action name="SnapToEdge" direction="down" combine="yes" />
</keybind>
<keybind key="A-Space">
<action name="ShowMenu" menu="client-menu" atCursor="no" />

View file

@ -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",