From 8e1214fc3a5378498f626f1cc886956ca3017d43 Mon Sep 17 00:00:00 2001 From: gellert Date: Mon, 1 Aug 2016 01:01:55 +0200 Subject: [PATCH] paint toggling fix cleanup --- atom/browser/osr_render_widget_host_view.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/atom/browser/osr_render_widget_host_view.cc b/atom/browser/osr_render_widget_host_view.cc index 8339f39dc4bd..1cb631f14185 100644 --- a/atom/browser/osr_render_widget_host_view.cc +++ b/atom/browser/osr_render_widget_host_view.cc @@ -492,7 +492,7 @@ void OffScreenRenderWidgetHostView::Focus() { } bool OffScreenRenderWidgetHostView::HasFocus() const { - return true; + return false; } bool OffScreenRenderWidgetHostView::IsSurfaceAvailableForCopy() const { @@ -554,9 +554,6 @@ void OffScreenRenderWidgetHostView::OnSwapCompositorFrame( TRACE_EVENT0("electron", "OffScreenRenderWidgetHostView::OnSwapCompositorFrame"); - // if (!painting_) - // return; - if (frame->metadata.root_scroll_offset != last_scroll_offset_) { last_scroll_offset_ = frame->metadata.root_scroll_offset; }