mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-19 09:40:25 +02:00
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:
parent
63dc6b7f67
commit
da155ea6ae
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user