mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 19:56:22 +02:00
SynEdit: Workaround for GTK/GTK2 issue, preventing block-selection, after hint window
git-svn-id: trunk@20935 -
This commit is contained in:
parent
c907579c4c
commit
8d062d9fa4
@ -2552,6 +2552,11 @@ procedure TCustomSynEdit.MouseMove(Shift: TShiftState; X, Y: Integer);
|
||||
var
|
||||
Z: integer;
|
||||
begin
|
||||
{$IF defined(LCLGTK) or defined(LCLGTK2)}
|
||||
// This is to temporarily address issue http://bugs.freepascal.org/view.php?id=12460
|
||||
if (sfMouseSelecting in fStateFlags) and not MouseCapture then
|
||||
MouseCapture := True;
|
||||
{$ENDIF}
|
||||
inherited MouseMove(Shift, x, y);
|
||||
if (sfGutterClick in fStateFlags) then begin
|
||||
FGutter.MouseMove(Shift, X, Y);
|
||||
@ -4255,6 +4260,11 @@ begin
|
||||
{$IFDEF VerboseFocus}
|
||||
DebugLn('[TCustomSynEdit.WMKillFocus] A ',Name);
|
||||
{$ENDIF}
|
||||
{$IF defined(LCLGTK) or defined(LCLGTK2)}
|
||||
// This is to temporarily address issue http://bugs.freepascal.org/view.php?id=12460
|
||||
if (sfMouseSelecting in fStateFlags) and not MouseCapture then
|
||||
Exclude(fStateFlags, sfMouseSelecting);
|
||||
{$ENDIF}
|
||||
LastMouseCaret:=Point(-1,-1);
|
||||
// Todo: Under Windows, keeping the Caret only works, if no other component creates a caret
|
||||
if not (eoPersistentCaret in fOptions) then begin
|
||||
|
Loading…
Reference in New Issue
Block a user