default-bindings.h: focus & raise on border press

...because it is probably what most people expect and it makes the
behavior consistent with that of Openbox.

Fixes: #3039
This commit is contained in:
Johan Malm 2025-09-01 20:56:51 +01:00 committed by Hiroaki Yamamoto
parent f1f8782bb0
commit a9f927047a
2 changed files with 14 additions and 0 deletions

View file

@ -376,6 +376,10 @@
</context> </context>
<context name="Border"> <context name="Border">
<mousebind button="Left" action="Press">
<action name="Focus" />
<action name="Raise" />
</mousebind>
<mousebind button="Left" action="Drag"> <mousebind button="Left" action="Drag">
<action name="Resize" /> <action name="Resize" />
</mousebind> </mousebind>

View file

@ -143,6 +143,16 @@ static struct mouse_combos {
const char *name, *value; const char *name, *value;
} attributes[2]; } attributes[2];
} mouse_combos[] = { { } mouse_combos[] = { {
.context = "Border",
.button = "Left",
.event = "Press",
.action = "Focus",
}, {
.context = "Border",
.button = "Left",
.event = "Press",
.action = "Raise",
}, {
.context = "Border", .context = "Border",
.button = "Left", .button = "Left",
.event = "Drag", .event = "Drag",