mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 03:48:08 +02:00
lcl GTK2: Fixed first mouse event is lost in new modal form shown from MouseDown event. Issue #35720
git-svn-id: branches/fixes_2_0@63371 -
This commit is contained in:
parent
2595ec7cec
commit
0dc7f8bbe1
@ -737,6 +737,12 @@ begin
|
||||
GtkWindow := {%H-}PGtkWindow(AForm.Handle);
|
||||
if (fsModal in AForm.FormState) and AForm.HandleObjectShouldBeVisible then
|
||||
begin
|
||||
LastMouse.Button := 0;
|
||||
LastMouse.ClickCount := 0;
|
||||
LastMouse.Down := False;
|
||||
LastMouse.MousePos := Point(0, 0);
|
||||
LastMouse.Time := 0;
|
||||
LastMouse.WinControl := nil;
|
||||
gtk_window_set_default_size(GtkWindow, Max(1,AForm.Width), Max(1,AForm.Height));
|
||||
gtk_widget_set_uposition(PGtkWidget(GtkWindow), AForm.Left, AForm.Top);
|
||||
gtk_window_set_type_hint({%H-}PGtkWindow(AForm.Handle),
|
||||
|
Loading…
Reference in New Issue
Block a user