summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-11-05 15:15:25 +0100
committerGravatar Nikias Bassen2010-11-05 15:15:25 +0100
commit652e1793bc8a499d07299356a5f3f28a125c71b9 (patch)
tree44209412b31fa2241ff589125d3ac993ac831914 /src
parenteace9a9a301515b23525195aee7a7c90b462dad5 (diff)
downloadsbmanager-652e1793bc8a499d07299356a5f3f28a125c71b9.tar.gz
sbmanager-652e1793bc8a499d07299356a5f3f28a125c71b9.tar.bz2
Add CLUTTER_VBLANK=none to fix certain graphics card related issues
Some graphics drivers like the intel one have problems with redrawing when using clutter-gtk. Using CLUTTER_VBLANK=none it works again. Since other graphics card configurations do no show any disadvantages we set CLUTTER_VBLANK=none as default. Setting CLUTTER_VBLANK manually will still override the default 'none' setting.
Diffstat (limited to 'src')
-rw-r--r--src/gui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui.c b/src/gui.c
index 7a07083..f86d677 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -1940,6 +1940,7 @@ GtkWidget *gui_init()
}
if (!clutter_initialized) {
+ g_setenv ("CLUTTER_VBLANK", "none", FALSE);
if (gtk_clutter_init(NULL, NULL) != CLUTTER_INIT_SUCCESS) {
g_error("Unable to initialize GtkClutter");
return NULL;