diff --git a/compositingprefs.cpp b/compositingprefs.cpp index 8c87ad4792..fa365e673c 100644 --- a/compositingprefs.cpp +++ b/compositingprefs.cpp @@ -113,7 +113,7 @@ bool CompositingPrefs::createGLXContext() { attribs.last() = GLX_DOUBLEBUFFER; attribs << None; - visinfo = glXChooseVisual( display(), scrnum, attribs.data() ); + visinfo = glXChooseVisual( display(), DefaultScreen( display()), attribs.data() ); if (!visinfo) { kError() << "Error: couldn't find RGB GLX visual";