diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2017-01-08 18:11:05 +0200 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2017-01-08 18:11:05 +0200 |
commit | a4b0a073b80bc189eaec673111fd939fa7e942ea (patch) | |
tree | 731f83c7d927926d109d4e4ad80176e183ef596f | |
parent | 5b7c89042b03ec59a0fffb0ca9b3f22639367f07 (diff) | |
download | metacity-a4b0a073b80bc189eaec673111fd939fa7e942ea.tar.gz |
compositor: add MetaCompositorNone
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/compositor/compositor-none.c | 134 | ||||
-rw-r--r-- | src/compositor/compositor-none.h | 25 |
3 files changed, 161 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index db0ef5c1..aecf4f8b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -31,6 +31,8 @@ metacity_SOURCES= \ include/util.h \ include/common.h \ compositor/compositor.c \ + compositor/compositor-none.c \ + compositor/compositor-none.h \ compositor/compositor-private.h \ compositor/compositor-xrender.c \ compositor/compositor-xrender.h \ diff --git a/src/compositor/compositor-none.c b/src/compositor/compositor-none.c new file mode 100644 index 00000000..31280ef9 --- /dev/null +++ b/src/compositor/compositor-none.c @@ -0,0 +1,134 @@ +/* + * Copyright (C) 2017 Alberts Muktupāvels + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "config.h" + +#include "compositor-none.h" +#include "compositor-private.h" + +typedef struct +{ + MetaCompositor compositor; + + MetaDisplay *display; +} MetaCompositorNone; + +static void +meta_compositor_none_manage_screen (MetaCompositor *compositor, + MetaScreen *screen) +{ +} + +static void +meta_compositor_none_unmanage_screen (MetaCompositor *compositor, + MetaScreen *screen) +{ +} + +static void +meta_compositor_none_add_window (MetaCompositor *compositor, + MetaWindow *window, + Window xwindow, + XWindowAttributes *attrs) +{ +} + +static void +meta_compositor_none_remove_window (MetaCompositor *compositor, + Window xwindow) +{ +} + +static void +meta_compositor_none_set_updates (MetaCompositor *compositor, + MetaWindow *window, + gboolean updates) +{ +} + +static void +meta_compositor_none_destroy (MetaCompositor *compositor) +{ + g_free (compositor); +} + +static void +meta_compositor_none_free_window (MetaCompositor *compositor, + MetaWindow *window) +{ +} + +static void +meta_compositor_none_process_event (MetaCompositor *compositor, + XEvent *event, + MetaWindow *window) +{ +} + +static cairo_surface_t * +meta_compositor_none_get_window_surface (MetaCompositor *compositor, + MetaWindow *window) +{ + return NULL; +} + +static void +meta_compositor_none_set_active_window (MetaCompositor *compositor, + MetaScreen *screen, + MetaWindow *window) +{ +} + +static void +meta_compositor_none_maximize_window (MetaCompositor *compositor, + MetaWindow *window) +{ +} + +static void +meta_compositor_none_unmaximize_window (MetaCompositor *compositor, + MetaWindow *window) +{ +} + +static MetaCompositor comp_info = { + meta_compositor_none_destroy, + meta_compositor_none_manage_screen, + meta_compositor_none_unmanage_screen, + meta_compositor_none_add_window, + meta_compositor_none_remove_window, + meta_compositor_none_set_updates, + meta_compositor_none_process_event, + meta_compositor_none_get_window_surface, + meta_compositor_none_set_active_window, + meta_compositor_none_free_window, + meta_compositor_none_maximize_window, + meta_compositor_none_unmaximize_window, +}; + +MetaCompositor * +meta_compositor_none_new (MetaDisplay *display) +{ + MetaCompositorNone *none; + + none = g_new (MetaCompositorNone, 1); + + none->compositor = comp_info; + none->display = display; + + return (MetaCompositor *) none; +} diff --git a/src/compositor/compositor-none.h b/src/compositor/compositor-none.h new file mode 100644 index 00000000..c81dceb5 --- /dev/null +++ b/src/compositor/compositor-none.h @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2017 Alberts Muktupāvels + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef META_COMPOSITOR_NONE_H +#define META_COMPOSITOR_NONE_H + +#include "types.h" + +MetaCompositor *meta_compositor_none_new (MetaDisplay *display); + +#endif |