commit 76cf04ba242967cb365dfb1a2d80ba982c239e06
Author: Juergen Spitzmueller <[email protected]>
Date: Sun Jun 28 15:45:26 2026 +0200
Do not open inset settings when click happened elsewhere (#13340)
(cherry picked from commit b26be315f2fa2463ff5b11a014c8585146855499)
---
src/insets/Inset.cpp | 6 +++---
status.25x | 3 +++
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/insets/Inset.cpp b/src/insets/Inset.cpp
index 3e9de261da..129695b34c 100644
--- a/src/insets/Inset.cpp
+++ b/src/insets/Inset.cpp
@@ -398,9 +398,9 @@ void Inset::doDispatch(Cursor & cur, FuncRequest &cmd)
// we assume we request the settings dialog,
// except if we are about to select (MOUSE_MOTION that started
// outside the inset).
- if ((!cur.selection() || covers(cur.bv(),
cur.bv().cursor().xClickPos(),
- cur.bv().cursor().yClickPos()))
- && cmd.button() == mouse_button::button1
+ if (cmd.button() == mouse_button::button1
+ && covers(cur.bv(), cur.bv().cursor().xClickPos(),
+ cur.bv().cursor().yClickPos())
&& clickable(cur.bv(), cmd.x(), cmd.y()) && hasSettings()) {
FuncRequest tmpcmd(LFUN_INSET_SETTINGS);
dispatch(cur, tmpcmd);
diff --git a/status.25x b/status.25x
index 7713ee35db..e090a264e0 100644
--- a/status.25x
+++ b/status.25x
@@ -55,6 +55,9 @@ What's new
- Fix status setting of DynamicMenuButton (bug 13332).
+- Do not open inset settings when click happened elsewhere (bug 13340).
+
+
* INTERNALS
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs