summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2019-10-23 00:57:10 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2019-10-23 00:57:10 +0300
commit977a9582ad7022e59116d7750b1a5e2f48cbd302 (patch)
treeb55a1040a66dbb9caf5e39495b5fa9fece78cd37
parente2070a3ef928e71c9458e81bfbaa1f9f46a0e1cc (diff)
downloadmetacity-977a9582ad7022e59116d7750b1a5e2f48cbd302.tar.gz
compositor: remove hide_window vfunc
-rw-r--r--src/compositor/meta-compositor-none.c8
-rw-r--r--src/compositor/meta-compositor-private.h4
-rw-r--r--src/compositor/meta-compositor-vulkan.c8
-rw-r--r--src/compositor/meta-compositor-xrender.c8
-rw-r--r--src/compositor/meta-compositor.c3
5 files changed, 0 insertions, 31 deletions
diff --git a/src/compositor/meta-compositor-none.c b/src/compositor/meta-compositor-none.c
index f2a18cba..a7a66bb2 100644
--- a/src/compositor/meta-compositor-none.c
+++ b/src/compositor/meta-compositor-none.c
@@ -41,13 +41,6 @@ meta_compositor_none_add_window (MetaCompositor *compositor,
}
static void
-meta_compositor_none_hide_window (MetaCompositor *compositor,
- MetaSurface *surface,
- MetaEffectType effect)
-{
-}
-
-static void
meta_compositor_none_process_event (MetaCompositor *compositor,
XEvent *event,
MetaWindow *window)
@@ -74,7 +67,6 @@ meta_compositor_none_class_init (MetaCompositorNoneClass *none_class)
compositor_class->manage = meta_compositor_none_manage;
compositor_class->add_window = meta_compositor_none_add_window;
- compositor_class->hide_window = meta_compositor_none_hide_window;
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 5d2e9dba..baa60554 100644
--- a/src/compositor/meta-compositor-private.h
+++ b/src/compositor/meta-compositor-private.h
@@ -35,10 +35,6 @@ struct _MetaCompositorClass
MetaSurface * (* add_window) (MetaCompositor *compositor,
MetaWindow *window);
- void (* hide_window) (MetaCompositor *compositor,
- MetaSurface *surface,
- MetaEffectType effect);
-
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 e408d452..b87b5194 100644
--- a/src/compositor/meta-compositor-vulkan.c
+++ b/src/compositor/meta-compositor-vulkan.c
@@ -1276,13 +1276,6 @@ meta_compositor_vulkan_add_window (MetaCompositor *compositor,
}
static void
-meta_compositor_vulkan_hide_window (MetaCompositor *compositor,
- MetaSurface *surface,
- MetaEffectType effect)
-{
-}
-
-static void
meta_compositor_vulkan_process_event (MetaCompositor *compositor,
XEvent *event,
MetaWindow *window)
@@ -1319,7 +1312,6 @@ meta_compositor_vulkan_class_init (MetaCompositorVulkanClass *vulkan_class)
compositor_class->manage = meta_compositor_vulkan_manage;
compositor_class->add_window = meta_compositor_vulkan_add_window;
- compositor_class->hide_window = meta_compositor_vulkan_hide_window;
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 a1586e8e..821cc3d8 100644
--- a/src/compositor/meta-compositor-xrender.c
+++ b/src/compositor/meta-compositor-xrender.c
@@ -1085,13 +1085,6 @@ meta_compositor_xrender_add_window (MetaCompositor *compositor,
}
static void
-meta_compositor_xrender_hide_window (MetaCompositor *compositor,
- MetaSurface *surface,
- MetaEffectType effect)
-{
-}
-
-static void
meta_compositor_xrender_process_event (MetaCompositor *compositor,
XEvent *event,
MetaWindow *window)
@@ -1185,7 +1178,6 @@ meta_compositor_xrender_class_init (MetaCompositorXRenderClass *xrender_class)
compositor_class->manage = meta_compositor_xrender_manage;
compositor_class->add_window = meta_compositor_xrender_add_window;
- compositor_class->hide_window = meta_compositor_xrender_hide_window;
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 3a68b8f6..25fad9e5 100644
--- a/src/compositor/meta-compositor.c
+++ b/src/compositor/meta-compositor.c
@@ -461,17 +461,14 @@ meta_compositor_hide_window (MetaCompositor *compositor,
MetaEffectType effect)
{
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->hide_window (compositor, surface, effect);
meta_surface_hide (surface);
}