diff options
author | okan | 2009-06-26 12:21:58 +0000 |
---|---|---|
committer | okan | 2009-06-26 12:21:58 +0000 |
commit | f041981121a18d2b5c0697db9469c8c6ab474386 (patch) | |
tree | 91a1c58c010d4d75d54b153aef83d0f1090d82f9 /calmwm.c | |
parent | f211e0e6f9fb03e24ed65461fc1375f3eda6d6ba (diff) | |
download | cwm-f041981121a18d2b5c0697db9469c8c6ab474386.tar.gz |
static local functions and data; almost identical diff from Thomas Pfaff
ok oga@
Diffstat (limited to 'calmwm.c')
-rw-r--r-- | calmwm.c | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: calmwm.c,v 1.41 2009/06/23 21:52:38 okan Exp $ + * $Id: calmwm.c,v 1.42 2009/06/26 12:21:58 okan Exp $ */ #include "headers.h" @@ -40,6 +40,7 @@ struct conf Conf; static void sigchld_cb(int); static void dpy_init(const char *); +static int x_errorhandler(Display *, XErrorEvent *); static void x_setup(void); static void x_setupscreen(struct screen_ctx *, u_int); static void x_teardown(void); @@ -89,7 +90,7 @@ main(int argc, char **argv) return (0); } -void +static void dpy_init(const char *dpyname) { int i; @@ -103,7 +104,7 @@ dpy_init(const char *dpyname) HasRandr = XRRQueryExtension(X_Dpy, &Randr_ev, &i); } -void +static void x_setup(void) { struct screen_ctx *sc; @@ -130,7 +131,7 @@ x_setup(void) Cursor_question = XCreateFontCursor(X_Dpy, XC_question_arrow); } -void +static void x_teardown(void) { struct screen_ctx *sc; @@ -141,7 +142,7 @@ x_teardown(void) XCloseDisplay(X_Dpy); } -void +static void x_setupscreen(struct screen_ctx *sc, u_int which) { Window *wins, w0, w1; @@ -200,11 +201,9 @@ x_setupscreen(struct screen_ctx *sc, u_int which) screen_init_xinerama(sc); XSync(X_Dpy, False); - - return; } -int +static int x_errorhandler(Display *dpy, XErrorEvent *e) { #ifdef DEBUG |