Commit 1e694b4d authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Add a vfunc for gdk_window_set_composited

parent 7f6ac56e
...@@ -7470,14 +7470,15 @@ gdk_window_set_composited (GdkWindow *window, ...@@ -7470,14 +7470,15 @@ gdk_window_set_composited (GdkWindow *window,
display = gdk_window_get_display (window); display = gdk_window_get_display (window);
if (!gdk_display_supports_composite (display) && composited) impl_class = GDK_WINDOW_IMPL_GET_CLASS (window->impl);
if (composited && (!gdk_display_supports_composite (display) || !impl_class->set_composited))
{ {
g_warning ("gdk_window_set_composited called but " g_warning ("gdk_window_set_composited called but "
"compositing is not supported"); "compositing is not supported");
return; return;
} }
impl_class = GDK_WINDOW_IMPL_GET_CLASS (window->impl);
impl_class->set_composited (window, composited); impl_class->set_composited (window, composited);
recompute_visible_regions (window, TRUE, FALSE); recompute_visible_regions (window, TRUE, FALSE);
......
...@@ -2912,11 +2912,6 @@ gdk_window_set_opacity (GdkWindow *window, ...@@ -2912,11 +2912,6 @@ gdk_window_set_opacity (GdkWindow *window,
[impl->toplevel setAlphaValue: opacity]; [impl->toplevel setAlphaValue: opacity];
} }
void
_gdk_windowing_window_set_composited (GdkWindow *window, gboolean composited)
{
}
static cairo_region_t * static cairo_region_t *
gdk_quartz_window_get_shape (GdkWindow *window) gdk_quartz_window_get_shape (GdkWindow *window)
{ {
......
...@@ -3150,11 +3150,6 @@ gdk_window_set_opacity (GdkWindow *window, ...@@ -3150,11 +3150,6 @@ gdk_window_set_opacity (GdkWindow *window,
} }
} }
void
_gdk_windowing_window_set_composited (GdkWindow *window, gboolean composited)
{
}
static cairo_region_t * static cairo_region_t *
gdk_win32_window_get_shape (GdkWindow *window) gdk_win32_window_get_shape (GdkWindow *window)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment