]> git.mdlowis.com Git - proto/labwc.git/commitdiff
mousebindings: change default focus and raise to press from drag.
authorARDiDo <90479315+ARDiDo@users.noreply.github.com>
Fri, 7 Jan 2022 21:13:36 +0000 (16:13 -0500)
committerJohan Malm <johanmalm@users.noreply.github.com>
Fri, 7 Jan 2022 22:05:07 +0000 (22:05 +0000)
This raises the window without having to drag it.

docs/rc.xml.all
src/config/rcxml.c

index 8f4fc1a84daf602313c7645913372a993d4a7270..d95e9c06710d3b596697cb7a46097ad010eb0cef 100644 (file)
     <doubleClickTime>500</doubleClickTime>
 
     <context name="Frame">
-      <mousebind button="A-Left" action="Drag">
+      <mousebind button="A-Left" action="Press">
         <action name="Focus"/>
         <action name="Raise"/>
+      </mousebind>
+      <mousebind button="A-Left" action="Drag">
         <action name="Move"/>
       </mousebind>
-      <mousebind button="A-Right" action="Drag">
+      <mousebind button="A-Right" action="Press">
         <action name="Focus"/>
         <action name="Raise"/>
+      </mousebind>
+      <mousebind button="A-Right" action="Drag">
         <action name="Resize"/>
       </mousebind>
     </context>
     </context>
 
     <context name="TitleBar">
-      <mousebind button="Left" action="Drag">
+      <mousebind button="Left" action="Press">
         <action name="Focus"/>
         <action name="Raise"/>
+      </mousebind>
+      <mousebind button="Left" action="Drag">
         <action name="Move"/>
       </mousebind>
       <mousebind button="Left" action="DoubleClick">
index fd1ec15c15d8ed33e02d80de757cc4d74ae04bfb..b2e543af3bd6b5c9785c38661c1b071205191b0b 100644 (file)
@@ -528,14 +528,14 @@ static struct {
        { "TRCorner", "Left", "Drag", "Resize", NULL},
        { "BRCorner", "Left", "Drag", "Resize", NULL},
        { "BLCorner", "Left", "Drag", "Resize", NULL},
-       { "Frame", "A-Left", "Drag", "Focus", NULL},
-       { "Frame", "A-Left", "Drag", "Raise", NULL},
+       { "Frame", "A-Left", "Press", "Focus", NULL},
+       { "Frame", "A-Left", "Press", "Raise", NULL},
        { "Frame", "A-Left", "Drag", "Move", NULL},
-       { "Frame", "A-Right", "Drag", "Focus", NULL},
-       { "Frame", "A-Right", "Drag", "Raise", NULL},
+       { "Frame", "A-Right", "Press", "Focus", NULL},
+       { "Frame", "A-Right", "Press", "Raise", NULL},
        { "Frame", "A-Right", "Drag", "Resize", NULL},
-       { "Titlebar", "Left", "Drag", "Focus", NULL},
-       { "Titlebar", "Left", "Drag", "Raise", NULL},
+       { "Titlebar", "Left", "Press", "Focus", NULL},
+       { "Titlebar", "Left", "Press", "Raise", NULL},
        { "TitleBar", "Left", "Drag", "Move", NULL },
        { "TitleBar", "Left", "DoubleClick", "ToggleMaximize", NULL },
        { "Close", "Left", "Click", "Close", NULL },