mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-13 12:29:29 +02:00
LCL-GTK3: Prevent a crash with Wayland caused by allocating 0-sized surface. Issue #36220, patch from Anton Kavalenka.
git-svn-id: trunk@62211 -
This commit is contained in:
parent
9f8d8b56f1
commit
6fe903d537
@ -1181,6 +1181,7 @@ begin
|
||||
begin
|
||||
AWindow := gdk_get_default_root_window;
|
||||
AWindow^.get_geometry(@x, @y, @w, @h);
|
||||
w:=1; h:=1;
|
||||
// ParentPixmap := gdk_pixbuf_get_from_window(AWindow, x, y, w, h);
|
||||
// Widget := gdk_cairo_create(AWindow);
|
||||
// gdk_cairo_set_source_pixbuf(Widget, ParentPixmap, 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user