[metacity] compositor: remove window_opaque_region_changed vfunc



commit 02c45bd31f7da18370d637c606ec4566992c2937
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Fri Oct 18 16:37:20 2019 +0300

    compositor: remove window_opaque_region_changed vfunc

 src/compositor/meta-compositor-none.c    | 7 -------
 src/compositor/meta-compositor-private.h | 3 ---
 src/compositor/meta-compositor-vulkan.c  | 7 -------
 src/compositor/meta-compositor-xrender.c | 7 -------
 src/compositor/meta-compositor.c         | 3 ---
 5 files changed, 27 deletions(-)
---
diff --git a/src/compositor/meta-compositor-none.c b/src/compositor/meta-compositor-none.c
index 7c5f9cd3..f49416e4 100644
--- a/src/compositor/meta-compositor-none.c
+++ b/src/compositor/meta-compositor-none.c
@@ -66,12 +66,6 @@ meta_compositor_none_window_opacity_changed (MetaCompositor *compositor,
 {
 }
 
-static void
-meta_compositor_none_window_opaque_region_changed (MetaCompositor *compositor,
-                                                   MetaSurface    *surface)
-{
-}
-
 static void
 meta_compositor_none_window_shape_region_changed (MetaCompositor *compositor,
                                                   MetaSurface    *surface)
@@ -146,7 +140,6 @@ meta_compositor_none_class_init (MetaCompositorNoneClass *none_class)
   compositor_class->show_window = meta_compositor_none_show_window;
   compositor_class->hide_window = meta_compositor_none_hide_window;
   compositor_class->window_opacity_changed = meta_compositor_none_window_opacity_changed;
-  compositor_class->window_opaque_region_changed = meta_compositor_none_window_opaque_region_changed;
   compositor_class->window_shape_region_changed = meta_compositor_none_window_shape_region_changed;
   compositor_class->set_updates_frozen = meta_compositor_none_set_updates_frozen;
   compositor_class->process_event = meta_compositor_none_process_event;
diff --git a/src/compositor/meta-compositor-private.h b/src/compositor/meta-compositor-private.h
index ba3c7cc7..6e7e506d 100644
--- a/src/compositor/meta-compositor-private.h
+++ b/src/compositor/meta-compositor-private.h
@@ -49,9 +49,6 @@ struct _MetaCompositorClass
   void              (* window_opacity_changed)       (MetaCompositor     *compositor,
                                                       MetaSurface        *surface);
 
-  void              (* window_opaque_region_changed) (MetaCompositor     *compositor,
-                                                      MetaSurface        *surface);
-
   void              (* window_shape_region_changed)  (MetaCompositor     *compositor,
                                                       MetaSurface        *surface);
 
diff --git a/src/compositor/meta-compositor-vulkan.c b/src/compositor/meta-compositor-vulkan.c
index b07d3015..d81c435d 100644
--- a/src/compositor/meta-compositor-vulkan.c
+++ b/src/compositor/meta-compositor-vulkan.c
@@ -1301,12 +1301,6 @@ meta_compositor_vulkan_window_opacity_changed (MetaCompositor *compositor,
 {
 }
 
-static void
-meta_compositor_vulkan_window_opaque_region_changed (MetaCompositor *compositor,
-                                                     MetaSurface    *surface)
-{
-}
-
 static void
 meta_compositor_vulkan_window_shape_region_changed (MetaCompositor *compositor,
                                                     MetaSurface    *surface)
@@ -1385,7 +1379,6 @@ meta_compositor_vulkan_class_init (MetaCompositorVulkanClass *vulkan_class)
   compositor_class->show_window = meta_compositor_vulkan_show_window;
   compositor_class->hide_window = meta_compositor_vulkan_hide_window;
   compositor_class->window_opacity_changed = meta_compositor_vulkan_window_opacity_changed;
-  compositor_class->window_opaque_region_changed = meta_compositor_vulkan_window_opaque_region_changed;
   compositor_class->window_shape_region_changed = meta_compositor_vulkan_window_shape_region_changed;
   compositor_class->set_updates_frozen = meta_compositor_vulkan_set_updates_frozen;
   compositor_class->process_event = meta_compositor_vulkan_process_event;
diff --git a/src/compositor/meta-compositor-xrender.c b/src/compositor/meta-compositor-xrender.c
index 010f04f1..cfe74cf3 100644
--- a/src/compositor/meta-compositor-xrender.c
+++ b/src/compositor/meta-compositor-xrender.c
@@ -1864,12 +1864,6 @@ meta_compositor_xrender_window_opacity_changed (MetaCompositor *compositor,
     }
 }
 
-static void
-meta_compositor_xrender_window_opaque_region_changed (MetaCompositor *compositor,
-                                                      MetaSurface    *surface)
-{
-}
-
 static void
 meta_compositor_xrender_window_shape_region_changed (MetaCompositor *compositor,
                                                      MetaSurface    *surface)
@@ -2083,7 +2077,6 @@ meta_compositor_xrender_class_init (MetaCompositorXRenderClass *xrender_class)
   compositor_class->show_window = meta_compositor_xrender_show_window;
   compositor_class->hide_window = meta_compositor_xrender_hide_window;
   compositor_class->window_opacity_changed = meta_compositor_xrender_window_opacity_changed;
-  compositor_class->window_opaque_region_changed = meta_compositor_xrender_window_opaque_region_changed;
   compositor_class->window_shape_region_changed = meta_compositor_xrender_window_shape_region_changed;
   compositor_class->set_updates_frozen = meta_compositor_xrender_set_updates_frozen;
   compositor_class->process_event = meta_compositor_xrender_process_event;
diff --git a/src/compositor/meta-compositor.c b/src/compositor/meta-compositor.c
index 5562bdd2..c2552802 100644
--- a/src/compositor/meta-compositor.c
+++ b/src/compositor/meta-compositor.c
@@ -493,17 +493,14 @@ meta_compositor_window_opaque_region_changed (MetaCompositor *compositor,
                                               MetaWindow     *window)
 {
   MetaCompositorPrivate *priv;
-  MetaCompositorClass *compositor_class;
   MetaSurface *surface;
 
   priv = meta_compositor_get_instance_private (compositor);
-  compositor_class = META_COMPOSITOR_GET_CLASS (compositor);
 
   surface = g_hash_table_lookup (priv->surfaces, window);
   if (surface == NULL)
     return;
 
-  compositor_class->window_opaque_region_changed (compositor, surface);
   meta_surface_opaque_region_changed (surface);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]