2012-02-20 21:47:14 +00:00
|
|
|
/* This file is (c) 2008-2012 Konstantin Isakov <ikm@goldendict.org>
|
2009-09-29 13:01:05 +00:00
|
|
|
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
|
|
|
|
|
|
|
|
#include "broken_xrecord.hh"
|
|
|
|
|
|
|
|
#include <QtGui>
|
|
|
|
|
2013-05-31 05:28:36 +00:00
|
|
|
#ifdef HAVE_X11
|
2009-09-29 13:01:05 +00:00
|
|
|
#include <X11/Xlib.h>
|
|
|
|
#include <X11/extensions/record.h>
|
|
|
|
#include <QX11Info>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
bool isRECORDBroken()
|
|
|
|
{
|
2013-05-31 05:28:36 +00:00
|
|
|
#ifdef HAVE_X11
|
2009-09-29 13:01:05 +00:00
|
|
|
|
|
|
|
char const * vendor = ServerVendor( QX11Info::display() );
|
|
|
|
|
|
|
|
if ( vendor && strstr( vendor, "X.Org" ) )
|
|
|
|
{
|
|
|
|
int release = VendorRelease( QX11Info::display() );
|
|
|
|
|
|
|
|
return release >= 10600000 && release < 10701000;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|