mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-03 06:17:30 +01:00
Gtk2: fixed crash when GtkDeviceContext widget isn't mapped yet. Use default root win as drawable. issue #27795
git-svn-id: trunk@48643 -
This commit is contained in:
parent
3360f8a0b2
commit
7ab1cdbe1f
@ -527,7 +527,7 @@ begin
|
|||||||
FWidget := AWidget;
|
FWidget := AWidget;
|
||||||
FPixbuf := nil;
|
FPixbuf := nil;
|
||||||
|
|
||||||
if AWidget = nil then
|
if (AWidget = nil) or not GTK_WIDGET_MAPPED(AWidget) then
|
||||||
begin
|
begin
|
||||||
// screen: ToDo: multiple desktops
|
// screen: ToDo: multiple desktops
|
||||||
FDrawable := gdk_screen_get_root_window(gdk_screen_get_default);
|
FDrawable := gdk_screen_get_root_window(gdk_screen_get_default);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user