mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-27 17:34:55 +02:00
Gtk3: fixed loop with paint, stalled code.
This commit is contained in:
parent
16be2ec0a6
commit
5eded0d07e
@ -1362,12 +1362,7 @@ begin
|
|||||||
if Data <> nil then
|
if Data <> nil then
|
||||||
begin
|
begin
|
||||||
gdk_cairo_get_clip_rectangle(AContext, @ARect);
|
gdk_cairo_get_clip_rectangle(AContext, @ARect);
|
||||||
// DebugLn('**** Sending paint event to ',dbgsName(TGtk3Widget(Data).LCLObject),' clip ',dbgs(RectFromGdkRect(ARect)),' w=',dbgs(ARect.Width),' h=',dbgs(ARect.height));
|
|
||||||
Result := TGtk3Widget(Data).GtkEventPaint(AWidget, AContext);
|
Result := TGtk3Widget(Data).GtkEventPaint(AWidget, AContext);
|
||||||
// workaround for lcl painted widgets until we found why gtk3 sends wrong rect
|
|
||||||
if (TGtk3Widget(Data).FHasPaint) and
|
|
||||||
(ARect.height < (TGtk3Widget(Data).GetContainerWidget^.get_allocated_height div 4) ) then
|
|
||||||
AWidget^.queue_draw;
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user