Commit 7ab1cdbe authored by Željan Rikalo's avatar Željan Rikalo 🏊🏼
Browse files

Gtk2: fixed crash when GtkDeviceContext widget isn't mapped yet. Use default...

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

git-svn-id: trunk@48643 -
parent 3360f8a0
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment