]> git.mdlowis.com Git - proto/labwc.git/commitdiff
config: use Super modifier instead of Alt for default mousebinds
authorJohan Malm <jgm323@gmail.com>
Fri, 13 Jun 2025 18:42:43 +0000 (19:42 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 22 Jun 2025 19:43:30 +0000 (20:43 +0100)
...A-Left and A-Right (for move and resize) to avoid interfering with some
clients like CAD programs and games.

docs/labwc-config.5.scd
docs/rc.xml.all
include/config/default-bindings.h

index 8f20227615270954848869a98c6948ed53b7d28b..b6f3b439f46958d1e37147a8898fcf41b49d5b7b 100644 (file)
@@ -803,14 +803,14 @@ extending outward from the snapped edge.
 </labwc_config>
 ```
 
-       Example to un-bind the default alt + left-button-press to move window:
+       Example to un-bind the default Super + left-button-press to move window:
 
 ```
 <mouse>
   <default/>
   <context name="Frame">
-    <mousebind button="A-Left" action="Press"/>
-    <mousebind button="A-Left" action="Drag"/>
+    <mousebind button="W-Left" action="Press"/>
+    <mousebind button="W-Left" action="Drag"/>
   </context>
 </mouse>
 ```
index 75f54d9a451065d59ba0df7c580c20d954a5c231..f9fc6eaefe8bcafb58710cc884e8b7d47a7ece71 100644 (file)
     <doubleClickTime>500</doubleClickTime>
 
     <context name="Frame">
-      <mousebind button="A-Left" action="Press">
+      <mousebind button="W-Left" action="Press">
         <action name="Focus" />
         <action name="Raise" />
       </mousebind>
-      <mousebind button="A-Left" action="Drag">
+      <mousebind button="W-Left" action="Drag">
         <action name="Move" />
       </mousebind>
-      <mousebind button="A-Right" action="Press">
+      <mousebind button="W-Right" action="Press">
         <action name="Focus" />
         <action name="Raise" />
       </mousebind>
-      <mousebind button="A-Right" action="Drag">
+      <mousebind button="W-Right" action="Drag">
         <action name="Resize" />
       </mousebind>
     </context>
index 98933afb9142f9cb71639a072e452d30f513422e..56f08cf54cfdd9d0d9ac27b73f285e2aa37557aa 100644 (file)
@@ -184,32 +184,32 @@ static struct mouse_combos {
                .action = "Resize",
        }, {
                .context = "Frame",
-               .button = "A-Left",
+               .button = "W-Left",
                .event = "Press",
                .action = "Focus",
        }, {
                .context = "Frame",
-               .button = "A-Left",
+               .button = "W-Left",
                .event = "Press",
                .action = "Raise",
        }, {
                .context = "Frame",
-               .button = "A-Left",
+               .button = "W-Left",
                .event = "Drag",
                .action = "Move",
        }, {
                .context = "Frame",
-               .button = "A-Right",
+               .button = "W-Right",
                .event = "Press",
                .action = "Focus",
        }, {
                .context = "Frame",
-               .button = "A-Right",
+               .button = "W-Right",
                .event = "Press",
                .action = "Raise",
        }, {
                .context = "Frame",
-               .button = "A-Right",
+               .button = "W-Right",
                .event = "Drag",
                .action = "Resize",
        }, {