aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md9
-rw-r--r--PKGBUILD2
-rw-r--r--input.c16
-rw-r--r--meson.build2
4 files changed, 20 insertions, 9 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 929c83e5..e06d6a60 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,7 @@
# Changelog
* [Unreleased](#Unreleased)
+* [1.5.2](#1-5-2)
* [1.5.1](#1-5-1)
* [1.5.0](#1-5-0)
* [1.4.4](#1-4-4)
@@ -50,6 +51,14 @@
### Contributors
+## 1.5.2
+
+### Fixed
+
+* Regression: middle clicking double pastes in e.g. vim
+ (https://codeberg.org/dnkl/foot/issues/168)
+
+
## 1.5.1
### Changed
diff --git a/PKGBUILD b/PKGBUILD
index cc42ced2..bc9d6465 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,5 @@
pkgname=('foot-git' 'foot-terminfo-git')
-pkgver=1.5.1
+pkgver=1.5.2
pkgrel=1
arch=('x86_64' 'aarch64')
url=https://codeberg.org/dnkl/foot
diff --git a/input.c b/input.c
index f3993978..76357850 100644
--- a/input.c
+++ b/input.c
@@ -1625,13 +1625,15 @@ wl_pointer_button(void *data, struct wl_pointer *wl_pointer,
}
}
- if (!term_mouse_grabbed(term, seat) &&
- cursor_is_on_grid)
- {
- term_mouse_down(
- term, button, seat->mouse.row, seat->mouse.col,
- seat->kbd.shift, seat->kbd.alt, seat->kbd.ctrl);
- }
+ }
+
+ if (!seat->mouse.consumed &&
+ !term_mouse_grabbed(term, seat) &&
+ cursor_is_on_grid)
+ {
+ term_mouse_down(
+ term, button, seat->mouse.row, seat->mouse.col,
+ seat->kbd.shift, seat->kbd.alt, seat->kbd.ctrl);
}
break;
}
diff --git a/meson.build b/meson.build
index 613c388b..16a42150 100644
--- a/meson.build
+++ b/meson.build
@@ -1,5 +1,5 @@
project('foot', 'c',
- version: '1.5.1',
+ version: '1.5.2',
license: 'MIT',
meson_version: '>=0.53.0',
default_options: [