]> git.mdlowis.com Git - proto/labwc.git/commitdiff
default-bindings.h: focus & raise on border press
authorJohan Malm <jgm323@gmail.com>
Mon, 1 Sep 2025 19:56:51 +0000 (20:56 +0100)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Thu, 4 Sep 2025 06:54:37 +0000 (15:54 +0900)
...because it is probably what most people expect and it makes the
behavior consistent with that of Openbox.

Fixes: #3039
docs/rc.xml.all
include/config/default-bindings.h

index f91985c352c15ec3c145c5fdf7e06705e925faae..a96993ab3b4071c778951b702fb7c63ec0c4ee17 100644 (file)
     </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>
index 12ec5c4c9b6179bcb74bb9657b2e79a2183e25cd..08caeadeb7a94cf2090b05644611fc8a9fad7c38 100644 (file)
@@ -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",