Gtk2: check if window is GDKWindow before processing of updates

git-svn-id: trunk@33934 -
This commit is contained in:
zeljko 2011-12-04 10:41:55 +00:00
parent 0ac4424d78
commit 8522c6ff0b

View File

@ -9333,7 +9333,8 @@ begin
if GTK_WIDGET_DRAWABLE(CurWidget) then begin
//DebugLn(['TGtk2WidgetSet.UpdateWindow DRAWING']);
gtk_widget_queue_draw(CurWidget);
gdk_window_process_updates(CurWidget^.window,TRUE);
if GDK_IS_WINDOW(CurWidget^.Window) then
gdk_window_process_updates(CurWidget^.window,TRUE);
Result:=true;
end else
Result:=false;