From d0ee0fa4e454059c63205501139b67db9ebbb884 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 31 Oct 2007 17:10:33 +0000 Subject: [PATCH] Not really, although it probably doesn't matter in practice. svn path=/trunk/KDE/kdebase/workspace/; revision=731423 --- compositingprefs.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compositingprefs.cpp b/compositingprefs.cpp index 3584e10cae..8c87ad4792 100644 --- a/compositingprefs.cpp +++ b/compositingprefs.cpp @@ -108,8 +108,7 @@ bool CompositingPrefs::createGLXContext() attribs << GLX_BLUE_SIZE << 1; attribs << None; - int scrnum = 0; // correct? - XVisualInfo* visinfo = glXChooseVisual( display(), scrnum, attribs.data() ); + XVisualInfo* visinfo = glXChooseVisual( display(), DefaultScreen( display()), attribs.data() ); if( !visinfo ) { attribs.last() = GLX_DOUBLEBUFFER;