mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 19:40:43 -05:00
Fixed xrender compositor following compositor API changes.
This commit is contained in:
parent
0214ece238
commit
ab2e925b65
@ -2443,23 +2443,21 @@ timeout_debug (MetaCompositorXRender *compositor)
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
xrender_add_window (MetaCompositor *compositor,
|
xrender_add_window (MetaCompositor *compositor,
|
||||||
MetaWindow *window,
|
MetaWindow *window)
|
||||||
Window xwindow,
|
|
||||||
XWindowAttributes *attrs)
|
|
||||||
{
|
{
|
||||||
#ifdef HAVE_COMPOSITE_EXTENSIONS
|
#ifdef HAVE_COMPOSITE_EXTENSIONS
|
||||||
MetaCompositorXRender *xrc = (MetaCompositorXRender *) compositor;
|
MetaCompositorXRender *xrc = (MetaCompositorXRender *) compositor;
|
||||||
MetaScreen *screen = meta_screen_for_x_screen (attrs->screen);
|
MetaScreen *screen = meta_window_get_screen (window);
|
||||||
|
|
||||||
meta_error_trap_push (xrc->display);
|
meta_error_trap_push (xrc->display);
|
||||||
add_win (screen, window, xwindow);
|
add_win (screen, window, meta_window_get_xwindow (window));
|
||||||
meta_error_trap_pop (xrc->display, FALSE);
|
meta_error_trap_pop (xrc->display, FALSE);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
xrender_remove_window (MetaCompositor *compositor,
|
xrender_remove_window (MetaCompositor *compositor,
|
||||||
Window xwindow)
|
MetaWindow *window)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_COMPOSITE_EXTENSIONS
|
#ifdef HAVE_COMPOSITE_EXTENSIONS
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user