Skip to content

Commit

Permalink
[ci skip] Disable WebKit hardware acceleration
Browse files Browse the repository at this point in the history
Former-commit-id: f878bbd
  • Loading branch information
tkashkin committed Jul 12, 2018
1 parent 8c4fa53 commit 47f0e1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ui/views/GameDetailsView/GameDetailsView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down
1 change: 1 addition & 0 deletions src/ui/windows/WebAuthWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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/*"};
Expand Down

0 comments on commit 47f0e1e

Please sign in to comment.