mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 02:49:30 +02:00
GTK2: Fixed first mouse event is lost in new modal form shown from MouseDown event. Issue #0035720
git-svn-id: trunk@63203 -
This commit is contained in:
parent
f42fd8868d
commit
f48f7cee1a
@ -743,6 +743,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