mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
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:
parent
f1f8782bb0
commit
a9f927047a
2 changed files with 14 additions and 0 deletions
|
|
@ -376,6 +376,10 @@
|
|||
</context>
|
||||
|
||||
<context name="Border">
|
||||
<mousebind button="Left" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
</mousebind>
|
||||
<mousebind button="Left" action="Drag">
|
||||
<action name="Resize" />
|
||||
</mousebind>
|
||||
|
|
|
|||
|
|
@ -143,6 +143,16 @@ static struct mouse_combos {
|
|||
const char *name, *value;
|
||||
} attributes[2];
|
||||
} mouse_combos[] = { {
|
||||
.context = "Border",
|
||||
.button = "Left",
|
||||
.event = "Press",
|
||||
.action = "Focus",
|
||||
}, {
|
||||
.context = "Border",
|
||||
.button = "Left",
|
||||
.event = "Press",
|
||||
.action = "Raise",
|
||||
}, {
|
||||
.context = "Border",
|
||||
.button = "Left",
|
||||
.event = "Drag",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue