put all functions in header file
This commit is contained in:
21
compton.c
21
compton.c
@@ -113,6 +113,8 @@ typedef struct _fade {
|
||||
Display *dpy;
|
||||
} fade;
|
||||
|
||||
#include "compton.h"
|
||||
|
||||
win *list;
|
||||
fade *fades;
|
||||
Display *dpy;
|
||||
@@ -159,15 +161,6 @@ conv *gaussian_map;
|
||||
#define DEBUG_EVENTS 0
|
||||
#define MONITOR_REPAINT 0
|
||||
|
||||
static void
|
||||
determine_mode(Display *dpy, win *w);
|
||||
|
||||
static double
|
||||
get_opacity_percent(Display *dpy, win *w);
|
||||
|
||||
static XserverRegion
|
||||
win_extents(Display *dpy, win *w);
|
||||
|
||||
int shadow_radius = 12;
|
||||
int shadow_offset_x = -15;
|
||||
int shadow_offset_y = -15;
|
||||
@@ -1452,12 +1445,6 @@ determine_wintype(Display *dpy, Window w, Window top) {
|
||||
}
|
||||
}
|
||||
|
||||
static unsigned int
|
||||
get_opacity_prop(Display *dpy, win *w, unsigned int def);
|
||||
|
||||
static void
|
||||
configure_win(Display *dpy, XConfigureEvent *ce);
|
||||
|
||||
static void
|
||||
map_win(Display *dpy, Window id,
|
||||
unsigned long sequence, Bool fade,
|
||||
@@ -2593,6 +2580,10 @@ ev_circulate_notify(XCirculateEvent *ev) {
|
||||
circulate_win(dpy, ev);
|
||||
}
|
||||
|
||||
XRectangle *expose_rects = 0;
|
||||
int size_expose = 0;
|
||||
int n_expose = 0;
|
||||
|
||||
inline static void
|
||||
ev_expose(XExposeEvent *ev) {
|
||||
if (ev->window == root) {
|
||||
|
||||
Reference in New Issue
Block a user