Skip to content

Commit

Permalink
Do not set WEBKIT_DISABLE_COMPOSITING in the environment
Browse files Browse the repository at this point in the history
Using the environment variable as fallback when
WebKitWebSettings.set_hardware_acceleration_policy() is not available will
make WebKitGTK+ crash in some revisions of the GNOME 3.22 runtime. Ugh.
  • Loading branch information
aperezdc committed Mar 22, 2017
1 parent be236e1 commit 627b143
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions revolt/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ def __init__(self, application, saved_state):
# binary drivers (i.e. NVidia) with Flatpak build. See issue #29.
if hasattr(websettings, "set_hardware_acceleration_policy"):
websettings.set_hardware_acceleration_policy(WebKit2.HardwareAccelerationPolicy.NEVER)
else:
import os
os.environ["WEBKIT_DISABLE_COMPOSITING_MODE"] = "1"

self._webview.show_all()
self.add(self._webview)
Expand Down

0 comments on commit 627b143

Please sign in to comment.