Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Commit

Permalink
re-enable AC mode for webkit2gtk versions 2.14.4+
Browse files Browse the repository at this point in the history
  • Loading branch information
lots0logs committed Feb 18, 2017
1 parent 0600412 commit 280e102
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ greeter_deps = [dbus_glib, gtk3, webkit2, x11]
webext_deps = [webkit2_webext, lightdm_gobject]

has_webkitgtk_2_14 = webkit2.version().version_compare('>=2.14')
has_webkitgtk_2_14_4 = webkit2.version().version_compare('>=2.14.4')
has_lightdm_1_19_2 = lightdm_gobject.version().version_compare('>=1.19.2')
has_gtk_3_22 = gtk3.version().version_compare('>=3.22')

Expand Down Expand Up @@ -62,6 +63,10 @@ if has_webkitgtk_2_14
conf.set('HAS_WEBKITGTK_2_14', has_webkitgtk_2_14)
endif

if has_webkitgtk_2_14_4
conf.set('HAS_WEBKITGTK_2_14_4', has_webkitgtk_2_14_4)
endif

if has_lightdm_1_19_2
conf.set('HAS_LIGHTDM_1_19_2', has_lightdm_1_19_2)
endif
Expand Down
6 changes: 4 additions & 2 deletions src/greeter.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,10 @@ main(int argc, char **argv) {
/* https://goo.gl/vDFwFe */
g_setenv ("GDK_CORE_DEVICE_EVENTS", "1", TRUE);

/* Temporary workaround until fixed upstream: https://goo.gl/wFJ4v7 */
g_setenv("WEBKIT_DISABLE_COMPOSITING_MODE", "1", TRUE);
if ( HAS_WEBKITGTK_2_14 && ! HAS_WEBKITGTK_2_14_4 ) {
/* AC mode causes a lot of crashes in webkit2gtk versions 2.14.0 through 2.14.3: */
g_setenv("WEBKIT_DISABLE_COMPOSITING_MODE", "1", TRUE);
}

/* Initialize i18n */
bindtextdomain(GETTEXT_PACKAGE, LOCALE_DIR);
Expand Down

0 comments on commit 280e102

Please sign in to comment.