From 54536b833abf724c54236af951486a5f461fa60f Mon Sep 17 00:00:00 2001 From: michl Date: Fri, 13 Oct 2017 13:58:28 +0000 Subject: [PATCH] LCL: GTK2: Don't grab focus for TPanel on mouse messages. Issue #32515 git-svn-id: trunk@56048 - --- lcl/interfaces/gtk2/gtk2callback.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lcl/interfaces/gtk2/gtk2callback.inc b/lcl/interfaces/gtk2/gtk2callback.inc index abbdfaf937..5535025bce 100644 --- a/lcl/interfaces/gtk2/gtk2callback.inc +++ b/lcl/interfaces/gtk2/gtk2callback.inc @@ -2184,8 +2184,9 @@ begin gtk_clipboard_set_text(AClip, PgChar(AClipText), length(AClipText)); end else begin - if (AWinControl is TCustomTabControl) then - // do not grab focus. issue #32237 + if (AWinControl is TCustomTabControl) + or (AWinControl is TCustomPanel) then + // do not grab focus. issue #32237, #32515 else LCLIntf.SetFocus(AWinControl.Handle); end;