LCL-GTK3: Prevent a crash with Wayland caused by allocating 0-sized surface. Issue , patch from Anton Kavalenka.

git-svn-id: trunk@62211 -
This commit is contained in:
juha 2019-11-06 21:32:26 +00:00
parent 9f8d8b56f1
commit 6fe903d537

View File

@ -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);