---
x.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/x.c b/x.c
index 8a16faa..c31057f 100644
--- a/x.c
+++ b/x.c
_AT_@ -252,8 +252,6 @@ static char *opt_line = NULL;
static char *opt_name = NULL;
static char *opt_title = NULL;
-static int oldbutton = 3; /* button event on startup: 3 = release */
-
void
clipcopy(const Arg *dummy)
{
_AT_@ -375,11 +373,8 @@ mousereport(XEvent *e)
return;
if (!IS_SET(MODE_MOUSEMOTION) && !IS_SET(MODE_MOUSEMANY))
return;
- /* MOUSE_MOTION: no reporting if no button is pressed */
- if (IS_SET(MODE_MOUSEMOTION) && oldbutton == 3)
- return;
- button = oldbutton + 32;
+ button = 32;
ox = x;
oy = y;
} else {
_AT_@ -393,11 +388,9 @@ mousereport(XEvent *e)
button += 64 - 3;
}
if (e->xbutton.type == ButtonPress) {
- oldbutton = button;
ox = x;
oy = y;
} else if (e->xbutton.type == ButtonRelease) {
- oldbutton = 3;
/* MODE_MOUSEX10: no button release reporting */
if (IS_SET(MODE_MOUSEX10))
return;
--
2.17.1
Received on Sat Jan 08 2022 - 00:33:34 CET
This archive was generated by hypermail 2.3.0 : Sat Jan 08 2022 - 04:00:54 CET