From 47f0e1efb09284fbdcb81d73378fb1adebbad7df Mon Sep 17 00:00:00 2001 From: tkashkin Date: Thu, 12 Jul 2018 11:37:43 +0300 Subject: [PATCH] [ci skip] Disable WebKit hardware acceleration Former-commit-id: f878bbd7a6f375e626d9a5c6726b62b3923ebf0c --- src/ui/views/GameDetailsView/GameDetailsView.vala | 1 + src/ui/windows/WebAuthWindow.vala | 1 + 2 files changed, 2 insertions(+) diff --git a/src/ui/views/GameDetailsView/GameDetailsView.vala b/src/ui/views/GameDetailsView/GameDetailsView.vala index 701fe4b4..72ef533d 100644 --- a/src/ui/views/GameDetailsView/GameDetailsView.vala +++ b/src/ui/views/GameDetailsView/GameDetailsView.vala @@ -113,6 +113,7 @@ namespace GameHub.UI.Views description = new WebView(); description.hexpand = true; description.vexpand = (get_toplevel() is GameHub.UI.Windows.MainWindow); + description.get_settings().hardware_acceleration_policy = HardwareAccelerationPolicy.NEVER; var ui_settings = GameHub.Settings.UI.get_instance(); ui_settings.notify["dark-theme"].connect(() => { diff --git a/src/ui/windows/WebAuthWindow.vala b/src/ui/windows/WebAuthWindow.vala index 419ce689..f41d5c5f 100644 --- a/src/ui/windows/WebAuthWindow.vala +++ b/src/ui/windows/WebAuthWindow.vala @@ -41,6 +41,7 @@ namespace GameHub.UI.Windows webview.get_settings().enable_mediasource = true; webview.get_settings().enable_smooth_scrolling = true; + webview.get_settings().hardware_acceleration_policy = HardwareAccelerationPolicy.NEVER; var style = ".banner,.navigation-container-v2,.tabbar,.base-main-wrapper,.site-footer,.evidon-banner{display:none !important}body{overflow:hidden !important}"; string[] whitelist = {"https://*.humblebundle.com/*"};