|
|
|
@ -42,6 +42,8 @@ Boston, MA 02110-1301, USA.
|
|
|
|
|
#include <X11/Xos.h>
|
|
|
|
|
#include <X11/Xatom.h>
|
|
|
|
|
|
|
|
|
|
#include <Qt/qcolormap.h>
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
Returns the window system handle of the paint device for XRender
|
|
|
|
|
support. Use of this function is not portable. This function will
|
|
|
|
@ -75,8 +77,11 @@ static GC create_gc( int scrn, bool monochrome )
|
|
|
|
|
} else {
|
|
|
|
|
Window w;
|
|
|
|
|
XSetWindowAttributes a;
|
|
|
|
|
a.background_pixel = Qt::black.pixel( scrn );
|
|
|
|
|
a.border_pixel = Qt::black.pixel( scrn );
|
|
|
|
|
QColormap cmap_background = QColormap::instance( scrn );
|
|
|
|
|
QColormap cmap_border = QColormap::instance( scrn );
|
|
|
|
|
a.background_pixel = cmap_background.pixel( Qt::black );
|
|
|
|
|
a.border_pixel = cmap_border.pixel( Qt::black );
|
|
|
|
|
|
|
|
|
|
a.colormap = QPaintDevice::x11AppColormap( scrn );
|
|
|
|
|
w = XCreateWindow( appDpy, RootWindow( appDpy, scrn ), 0, 0, 100, 100,
|
|
|
|
|
0, QPaintDevice::x11AppDepth( scrn ), InputOutput,
|
|
|
|
|