mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
2007-07-24 Matthew Allum <mallum@openedhand.com>
* clutter/glx/clutter-stage-glx.c: (clutter_stage_glx_realize): Create stage window with correct depth/visual. Via patch from Robert Bragg (#409).
This commit is contained in:
parent
e227bf70e2
commit
8076d5c218
@ -1,3 +1,9 @@
|
|||||||
|
2007-07-24 Matthew Allum <mallum@openedhand.com>
|
||||||
|
|
||||||
|
* clutter/glx/clutter-stage-glx.c: (clutter_stage_glx_realize):
|
||||||
|
Create stage window with correct depth/visual. Via patch from
|
||||||
|
Robert Bragg (#409).
|
||||||
|
|
||||||
2007-07-23 Matthew Allum <mallum@openedhand.com>
|
2007-07-23 Matthew Allum <mallum@openedhand.com>
|
||||||
|
|
||||||
* clutter/clutter-texture.c: (texture_render_to_gl_quad),
|
* clutter/clutter-texture.c: (texture_render_to_gl_quad),
|
||||||
|
@ -179,15 +179,30 @@ clutter_stage_glx_realize (ClutterActor *actor)
|
|||||||
|
|
||||||
if (stage_glx->xwin == None)
|
if (stage_glx->xwin == None)
|
||||||
{
|
{
|
||||||
|
XSetWindowAttributes xattr;
|
||||||
|
unsigned long mask;
|
||||||
|
|
||||||
CLUTTER_NOTE (MISC, "Creating stage X window");
|
CLUTTER_NOTE (MISC, "Creating stage X window");
|
||||||
stage_glx->xwin = XCreateSimpleWindow (stage_glx->xdpy,
|
|
||||||
stage_glx->xwin_root,
|
/* window attributes */
|
||||||
0, 0,
|
xattr.background_pixel = WhitePixel (stage_glx->xdpy,
|
||||||
stage_glx->xwin_width,
|
stage_glx->xscreen);
|
||||||
stage_glx->xwin_height,
|
xattr.border_pixel = 0;
|
||||||
0, 0,
|
xattr.colormap = XCreateColormap (stage_glx->xdpy,
|
||||||
WhitePixel (stage_glx->xdpy,
|
stage_glx->xwin_root,
|
||||||
stage_glx->xscreen));
|
stage_glx->xvisinfo->visual,
|
||||||
|
AllocNone);
|
||||||
|
mask = CWBackPixel | CWBorderPixel | CWColormap;
|
||||||
|
stage_glx->xwin = XCreateWindow (stage_glx->xdpy,
|
||||||
|
stage_glx->xwin_root,
|
||||||
|
0, 0,
|
||||||
|
stage_glx->xwin_width,
|
||||||
|
stage_glx->xwin_height,
|
||||||
|
0,
|
||||||
|
stage_glx->xvisinfo->depth,
|
||||||
|
InputOutput,
|
||||||
|
stage_glx->xvisinfo->visual,
|
||||||
|
mask, &xattr);
|
||||||
}
|
}
|
||||||
|
|
||||||
CLUTTER_NOTE (MISC, "XSelectInput");
|
CLUTTER_NOTE (MISC, "XSelectInput");
|
||||||
|
Loading…
Reference in New Issue
Block a user