if (has_focus_ == focused)
return;
+ LOG(INFO) << "EflWindow Focus:" << focused;
has_focus_ = focused;
if (events_overlay_) {
// Set focus active for a newly opened window.
#if !defined(BUILD_CHROME)
- UpdateFocus(true);
+#if BUILDFLAG(IS_TIZEN_TV)
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableOffscreenRendering))
+#endif
+ UpdateFocus(true);
#endif
efl_event_handler_ = std::make_unique<EflEventHandler>(this);
PlatformEventSource::GetInstance()->AddPlatformEventDispatcher(this);
void EflWindow::ResetEventHandler() {
delegate_->OnActivationChanged(false /*active*/);
- UpdateFocus(false);
+#if BUILDFLAG(IS_TIZEN_TV)
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableOffscreenRendering))
+#endif
+ UpdateFocus(false);
efl_event_handler_.reset();
PlatformEventSource::GetInstance()->RemovePlatformEventDispatcher(this);
}