Merged revision 48643 #7ab1cdbe1f from /trunk

------------------------------------------------------------------------
r48643 | zeljko | 2015-04-06 13:04:26 +0200 (Pon, 06 Tra 2015) | 2 lines

Gtk2: fixed crash when GtkDeviceContext widget isn't mapped yet. Use default root win as drawable. issue #27795

------------------------------------------------------------------------

git-svn-id: branches/fixes_1_4@48713 -
This commit is contained in:
zeljko 2015-04-11 07:07:59 +00:00
parent 63dc6b7f67
commit da155ea6ae

View File

@ -527,7 +527,7 @@ begin
FWidget := AWidget;
FPixbuf := nil;
if AWidget = nil then
if (AWidget = nil) or not GTK_WIDGET_MAPPED(AWidget) then
begin
// screen: ToDo: multiple desktops
FDrawable := gdk_screen_get_root_window(gdk_screen_get_default);