mousebindings: change default focus and raise to press from drag.

This raises the window without having to drag it.
This commit is contained in:
ARDiDo 2022-01-07 16:13:36 -05:00 committed by Johan Malm
parent f8e1ab2285
commit a893607a0e
2 changed files with 15 additions and 9 deletions

View file

@ -116,14 +116,18 @@
<doubleClickTime>500</doubleClickTime> <doubleClickTime>500</doubleClickTime>
<context name="Frame"> <context name="Frame">
<mousebind button="A-Left" action="Drag"> <mousebind button="A-Left" action="Press">
<action name="Focus"/> <action name="Focus"/>
<action name="Raise"/> <action name="Raise"/>
</mousebind>
<mousebind button="A-Left" action="Drag">
<action name="Move"/> <action name="Move"/>
</mousebind> </mousebind>
<mousebind button="A-Right" action="Drag"> <mousebind button="A-Right" action="Press">
<action name="Focus"/> <action name="Focus"/>
<action name="Raise"/> <action name="Raise"/>
</mousebind>
<mousebind button="A-Right" action="Drag">
<action name="Resize"/> <action name="Resize"/>
</mousebind> </mousebind>
</context> </context>
@ -170,9 +174,11 @@
</context> </context>
<context name="TitleBar"> <context name="TitleBar">
<mousebind button="Left" action="Drag"> <mousebind button="Left" action="Press">
<action name="Focus"/> <action name="Focus"/>
<action name="Raise"/> <action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Move"/> <action name="Move"/>
</mousebind> </mousebind>
<mousebind button="Left" action="DoubleClick"> <mousebind button="Left" action="DoubleClick">

View file

@ -528,14 +528,14 @@ static struct {
{ "TRCorner", "Left", "Drag", "Resize", NULL}, { "TRCorner", "Left", "Drag", "Resize", NULL},
{ "BRCorner", "Left", "Drag", "Resize", NULL}, { "BRCorner", "Left", "Drag", "Resize", NULL},
{ "BLCorner", "Left", "Drag", "Resize", NULL}, { "BLCorner", "Left", "Drag", "Resize", NULL},
{ "Frame", "A-Left", "Drag", "Focus", NULL}, { "Frame", "A-Left", "Press", "Focus", NULL},
{ "Frame", "A-Left", "Drag", "Raise", NULL}, { "Frame", "A-Left", "Press", "Raise", NULL},
{ "Frame", "A-Left", "Drag", "Move", NULL}, { "Frame", "A-Left", "Drag", "Move", NULL},
{ "Frame", "A-Right", "Drag", "Focus", NULL}, { "Frame", "A-Right", "Press", "Focus", NULL},
{ "Frame", "A-Right", "Drag", "Raise", NULL}, { "Frame", "A-Right", "Press", "Raise", NULL},
{ "Frame", "A-Right", "Drag", "Resize", NULL}, { "Frame", "A-Right", "Drag", "Resize", NULL},
{ "Titlebar", "Left", "Drag", "Focus", NULL}, { "Titlebar", "Left", "Press", "Focus", NULL},
{ "Titlebar", "Left", "Drag", "Raise", NULL}, { "Titlebar", "Left", "Press", "Raise", NULL},
{ "TitleBar", "Left", "Drag", "Move", NULL }, { "TitleBar", "Left", "Drag", "Move", NULL },
{ "TitleBar", "Left", "DoubleClick", "ToggleMaximize", NULL }, { "TitleBar", "Left", "DoubleClick", "ToggleMaximize", NULL },
{ "Close", "Left", "Click", "Close", NULL }, { "Close", "Left", "Click", "Close", NULL },