From 1d65e2e50cb0ed454adef3e361351cf098e5d03a Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Sat, 27 Jun 2009 11:01:58 -0400 Subject: [PATCH] Reindent and reorganize compositor.h Reindent compositor.h in a more consistent fashion, and group logically related functions together. http://bugzilla.gnome.org/show_bug.cgi?id=587251 --- src/include/compositor.h | 125 ++++++++++++++++----------------------- 1 file changed, 50 insertions(+), 75 deletions(-) diff --git a/src/include/compositor.h b/src/include/compositor.h index 37d3a1178..d1a53b07e 100644 --- a/src/include/compositor.h +++ b/src/include/compositor.h @@ -53,90 +53,65 @@ typedef enum _MetaCompWindowType } MetaCompWindowType; -MetaCompositor *meta_compositor_new (MetaDisplay *display); -void meta_compositor_destroy (MetaCompositor *compositor); +MetaCompositor *meta_compositor_new (MetaDisplay *display); +void meta_compositor_destroy (MetaCompositor *compositor); -void meta_compositor_manage_screen (MetaCompositor *compositor, - MetaScreen *screen); +void meta_compositor_manage_screen (MetaCompositor *compositor, + MetaScreen *screen); void meta_compositor_unmanage_screen (MetaCompositor *compositor, MetaScreen *screen); -void meta_compositor_add_window (MetaCompositor *compositor, - MetaWindow *window); -void meta_compositor_remove_window (MetaCompositor *compositor, - MetaWindow *window); - -void meta_compositor_set_updates (MetaCompositor *compositor, - MetaWindow *window, - gboolean updates); - gboolean meta_compositor_process_event (MetaCompositor *compositor, XEvent *event, MetaWindow *window); -void -meta_compositor_map_window (MetaCompositor *compositor, - MetaWindow *window); - -void -meta_compositor_unmap_window (MetaCompositor *compositor, - MetaWindow *window); - -void -meta_compositor_minimize_window (MetaCompositor *compositor, - MetaWindow *window, - MetaRectangle *window_rect, - MetaRectangle *icon_rect); - -void -meta_compositor_unminimize_window (MetaCompositor *compositor, - MetaWindow *window, - MetaRectangle *window_rect, - MetaRectangle *icon_rect); - -void -meta_compositor_maximize_window (MetaCompositor *compositor, - MetaWindow *window, - MetaRectangle *window_rect); - -void -meta_compositor_unmaximize_window (MetaCompositor *compositor, - MetaWindow *window, - MetaRectangle *window_rect); - -void -meta_compositor_update_workspace_geometry (MetaCompositor *compositor, - MetaWorkspace *workspace); - -void -meta_compositor_switch_workspace (MetaCompositor *compositor, - MetaScreen *screen, - MetaWorkspace *from, - MetaWorkspace *to, - MetaMotionDirection direction); - -void -meta_compositor_sync_stack (MetaCompositor *compositor, - MetaScreen *screen, - GList *stack); - -void -meta_compositor_set_window_hidden (MetaCompositor *compositor, - MetaScreen *screen, - MetaWindow *window, - gboolean hidden); - -void -meta_compositor_sync_window_geometry (MetaCompositor *compositor, - MetaWindow *window); -void -meta_compositor_sync_screen_size (MetaCompositor *compositor, - MetaScreen *screen, - guint width, - guint height); -#endif - +void meta_compositor_add_window (MetaCompositor *compositor, + MetaWindow *window); +void meta_compositor_remove_window (MetaCompositor *compositor, + MetaWindow *window); +void meta_compositor_map_window (MetaCompositor *compositor, + MetaWindow *window); +void meta_compositor_unmap_window (MetaCompositor *compositor, + MetaWindow *window); +void meta_compositor_minimize_window (MetaCompositor *compositor, + MetaWindow *window, + MetaRectangle *window_rect, + MetaRectangle *icon_rect); +void meta_compositor_unminimize_window (MetaCompositor *compositor, + MetaWindow *window, + MetaRectangle *window_rect, + MetaRectangle *icon_rect); +void meta_compositor_maximize_window (MetaCompositor *compositor, + MetaWindow *window, + MetaRectangle *window_rect); +void meta_compositor_unmaximize_window (MetaCompositor *compositor, + MetaWindow *window, + MetaRectangle *window_rect); +void meta_compositor_switch_workspace (MetaCompositor *compositor, + MetaScreen *screen, + MetaWorkspace *from, + MetaWorkspace *to, + MetaMotionDirection direction); +void meta_compositor_set_window_hidden (MetaCompositor *compositor, + MetaScreen *screen, + MetaWindow *window, + gboolean hidden); +void meta_compositor_sync_window_geometry (MetaCompositor *compositor, + MetaWindow *window); +void meta_compositor_set_updates (MetaCompositor *compositor, + MetaWindow *window, + gboolean updates); +void meta_compositor_update_workspace_geometry (MetaCompositor *compositor, + MetaWorkspace *workspace); +void meta_compositor_sync_stack (MetaCompositor *compositor, + MetaScreen *screen, + GList *stack); +void meta_compositor_sync_screen_size (MetaCompositor *compositor, + MetaScreen *screen, + guint width, + guint height); +#endif /* META_COMPOSITOR_H */