From a893607a0ee02fa3c26faae29621af4f1004ea8c Mon Sep 17 00:00:00 2001
From: ARDiDo <90479315+ARDiDo@users.noreply.github.com>
Date: Fri, 7 Jan 2022 16:13:36 -0500
Subject: [PATCH] mousebindings: change default focus and raise to press from
drag.
This raises the window without having to drag it.
---
docs/rc.xml.all | 12 +++++++++---
src/config/rcxml.c | 12 ++++++------
2 files changed, 15 insertions(+), 9 deletions(-)
diff --git a/docs/rc.xml.all b/docs/rc.xml.all
index 8f4fc1a8..d95e9c06 100644
--- a/docs/rc.xml.all
+++ b/docs/rc.xml.all
@@ -116,14 +116,18 @@
500
-
+
+
+
-
+
+
+
@@ -170,9 +174,11 @@
-
+
+
+
diff --git a/src/config/rcxml.c b/src/config/rcxml.c
index fd1ec15c..b2e543af 100644
--- a/src/config/rcxml.c
+++ b/src/config/rcxml.c
@@ -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 },
--
2.52.0