From 4642216f70dd98134a79f9299b7ca4bc876649c7 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 28 Aug 2016 00:36:53 -0700 Subject: *: refactor all the things Long overdue house cleaning. The addition of compositing/monitoring overlays in vwm3 pushed vwm well past what is a reasonable size for a simple thousand line file. This is a first step towards restoring sanity in the code, but no behavioral differences are intended, this is mostly just shuffling around and organizing code. I expect some performance regressions initially, follow-on commits will make more improvements to that end as the dust settles. --- src/composite.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/composite.h (limited to 'src/composite.h') diff --git a/src/composite.h b/src/composite.h new file mode 100644 index 0000000..fb4f623 --- /dev/null +++ b/src/composite.h @@ -0,0 +1,24 @@ +#ifndef _COMPOSITE_H +#define _COMPOSITE_H + +#include +#include +#include + +typedef struct _vwm_t vwm_t; +typedef struct _vwm_xwindow_t vwm_xwindow_t; + +void vwm_composite_xwin_create(vwm_t *vwm, vwm_xwindow_t *xwin); +void vwm_composite_xwin_destroy(vwm_t *vwm, vwm_xwindow_t *xwin); +void vwm_composite_damage_add(vwm_t *vwm, XserverRegion damage); +void vwm_composite_damage_win(vwm_t *vwm, vwm_xwindow_t *xwin); +void vwm_composite_handle_configure(vwm_t *vwm, vwm_xwindow_t *xwin, XWindowAttributes *new_attrs); +void vwm_composite_handle_map(vwm_t *vwm, vwm_xwindow_t *xwin); +void vwm_composite_damage_event(vwm_t *vwm, XDamageNotifyEvent *ev); +void vwm_composite_damage_win(vwm_t *vwm, vwm_xwindow_t *xwin); +void vwm_composite_paint_all(vwm_t *vwm); +void vwm_composite_invalidate_root(vwm_t *vwm); +void vwm_composite_repaint_needed(vwm_t *vwm); +void vwm_composite_toggle(vwm_t *vwm); + +#endif -- cgit v1.2.3