[metacity] compositor: remove window_opacity_changed vfunc



commit af2f66c50bff732e0b47dea2cd77f279981ddfec
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Wed Oct 23 00:53:50 2019 +0300

    compositor: remove window_opacity_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 4fd316ff..6160b08d 100644
--- a/src/compositor/meta-compositor-none.c
+++ b/src/compositor/meta-compositor-none.c
@@ -53,12 +53,6 @@ meta_compositor_none_hide_window (MetaCompositor *compositor,
 {
 }
 
-static void
-meta_compositor_none_window_opacity_changed (MetaCompositor *compositor,
-                                             MetaSurface    *surface)
-{
-}
-
 static void
 meta_compositor_none_process_event (MetaCompositor *compositor,
                                     XEvent         *event,
@@ -88,7 +82,6 @@ meta_compositor_none_class_init (MetaCompositorNoneClass *none_class)
   compositor_class->add_window = meta_compositor_none_add_window;
   compositor_class->remove_window = meta_compositor_none_remove_window;
   compositor_class->hide_window = meta_compositor_none_hide_window;
-  compositor_class->window_opacity_changed = meta_compositor_none_window_opacity_changed;
   compositor_class->process_event = meta_compositor_none_process_event;
   compositor_class->sync_screen_size = meta_compositor_none_sync_screen_size;
   compositor_class->redraw = meta_compositor_none_redraw;
diff --git a/src/compositor/meta-compositor-private.h b/src/compositor/meta-compositor-private.h
index 5872e66c..6bfbd9ab 100644
--- a/src/compositor/meta-compositor-private.h
+++ b/src/compositor/meta-compositor-private.h
@@ -42,9 +42,6 @@ struct _MetaCompositorClass
                                             MetaSurface     *surface,
                                             MetaEffectType   effect);
 
-  void          (* window_opacity_changed) (MetaCompositor  *compositor,
-                                            MetaSurface     *surface);
-
   void          (* process_event)          (MetaCompositor  *compositor,
                                             XEvent          *event,
                                             MetaWindow      *window);
diff --git a/src/compositor/meta-compositor-vulkan.c b/src/compositor/meta-compositor-vulkan.c
index 5b0f93e4..28e44df5 100644
--- a/src/compositor/meta-compositor-vulkan.c
+++ b/src/compositor/meta-compositor-vulkan.c
@@ -1288,12 +1288,6 @@ meta_compositor_vulkan_hide_window (MetaCompositor *compositor,
 {
 }
 
-static void
-meta_compositor_vulkan_window_opacity_changed (MetaCompositor *compositor,
-                                               MetaSurface    *surface)
-{
-}
-
 static void
 meta_compositor_vulkan_process_event (MetaCompositor *compositor,
                                       XEvent         *event,
@@ -1333,7 +1327,6 @@ meta_compositor_vulkan_class_init (MetaCompositorVulkanClass *vulkan_class)
   compositor_class->add_window = meta_compositor_vulkan_add_window;
   compositor_class->remove_window = meta_compositor_vulkan_remove_window;
   compositor_class->hide_window = meta_compositor_vulkan_hide_window;
-  compositor_class->window_opacity_changed = meta_compositor_vulkan_window_opacity_changed;
   compositor_class->process_event = meta_compositor_vulkan_process_event;
   compositor_class->sync_screen_size = meta_compositor_vulkan_sync_screen_size;
   compositor_class->pre_paint = meta_compositor_vulkan_pre_paint;
diff --git a/src/compositor/meta-compositor-xrender.c b/src/compositor/meta-compositor-xrender.c
index d30b2eec..0524490b 100644
--- a/src/compositor/meta-compositor-xrender.c
+++ b/src/compositor/meta-compositor-xrender.c
@@ -1097,12 +1097,6 @@ meta_compositor_xrender_hide_window (MetaCompositor *compositor,
 {
 }
 
-static void
-meta_compositor_xrender_window_opacity_changed (MetaCompositor *compositor,
-                                                MetaSurface    *surface)
-{
-}
-
 static void
 meta_compositor_xrender_process_event (MetaCompositor *compositor,
                                        XEvent         *event,
@@ -1199,7 +1193,6 @@ meta_compositor_xrender_class_init (MetaCompositorXRenderClass *xrender_class)
   compositor_class->add_window = meta_compositor_xrender_add_window;
   compositor_class->remove_window = meta_compositor_xrender_remove_window;
   compositor_class->hide_window = meta_compositor_xrender_hide_window;
-  compositor_class->window_opacity_changed = meta_compositor_xrender_window_opacity_changed;
   compositor_class->process_event = meta_compositor_xrender_process_event;
   compositor_class->sync_screen_size = meta_compositor_xrender_sync_screen_size;
   compositor_class->pre_paint = meta_compositor_xrender_pre_paint;
diff --git a/src/compositor/meta-compositor.c b/src/compositor/meta-compositor.c
index 8a10c046..fe65ef32 100644
--- a/src/compositor/meta-compositor.c
+++ b/src/compositor/meta-compositor.c
@@ -482,17 +482,14 @@ meta_compositor_window_opacity_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_opacity_changed (compositor, surface);
   meta_surface_opacity_changed (surface);
 }
 


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