mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-21 22:59:27 +02:00
LCL-Gtk2: Ignore temporary windows (like dragging image) when selecting a target during Drag'n'Drop action. Patch by Alexander (Rouse_) Bagel, issue #40637.
This commit is contained in:
parent
656d6ffc5d
commit
e2c8faccd9
@ -9828,6 +9828,9 @@ begin
|
||||
@p.x, @p.y);
|
||||
if window <> nil then
|
||||
begin
|
||||
// ignore temporary windows Hint/DragImageList/etc...
|
||||
if gdk_window_get_type(Window) = GDK_WINDOW_TEMP then
|
||||
Exit(LastWFPResult);
|
||||
FillChar(ev{%H-}, SizeOf(ev), 0);
|
||||
ev.any.window := Window;
|
||||
Widget := gtk_get_event_widget(@ev);
|
||||
|
Loading…
Reference in New Issue
Block a user