surf

Surf web browser.
git clone git://r-36.net/surf
Log | Files | Refs | README | LICENSE

commit 55b66eda460db4e936bd995f7cd048c8438d0975
parent 60a44e177d37eac08d66a9d9d80a6a36204864ea
Author: Christoph Lohmann <20h@r-36.net>
Date:   Fri, 21 Apr 2017 20:46:43 +0200

Allow accelerated composition.

Diffstat:
config.def.h | 2++
surf.c | 2++
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -11,6 +11,8 @@ static Bool kioskmode = FALSE; /* Ignore shortcuts */ static Bool showindicators = TRUE; /* Show indicators in window title */ static Bool zoomto96dpi = TRUE; /* Zoom pages to always emulate 96dpi */ static Bool runinfullscreen = FALSE; /* Run in fullscreen mode by default */ +static Bool accelrendering = TRUE; /* Allow accelerated compositing of + * the page, using the GPU, if available. */ static char *defaultencoding = "utf-8"; /* Default encoding for files. */ static guint defaultfontsize = 12; /* Default font size */ diff --git a/surf.c b/surf.c @@ -1095,6 +1095,8 @@ newclient(void) "resizable-text-areas", 1, NULL); g_object_set(G_OBJECT(settings), "default-encoding", defaultencoding, NULL); + g_object_set(G_OBJECT(settings), + "enable-accelerated-compositing", accelrendering, NULL); if (enablestyle) setstyle(c, getstyle("about:blank"));