Thu Mar 28 21:40:13 2013 UTC ()
Fix return types.
(joerg)
diff -r1.5 -r1.6 pkgsrc/wm/olvwm/distinfo
diff -r1.1.1.1 -r1.2 pkgsrc/wm/olvwm/patches/patch-ad
diff -r1.1.1.1 -r1.2 pkgsrc/wm/olvwm/patches/patch-ae
diff -r1.1.1.1 -r1.2 pkgsrc/wm/olvwm/patches/patch-af
diff -r1.1.1.1 -r1.2 pkgsrc/wm/olvwm/patches/patch-ag
diff -r1.1.1.1 -r1.2 pkgsrc/wm/olvwm/patches/patch-ai
diff -r1.1.1.1 -r1.2 pkgsrc/wm/olvwm/patches/patch-ak
diff -r1.2 -r1.3 pkgsrc/wm/olvwm/patches/patch-ah
diff -r0 -r1.1 pkgsrc/wm/olvwm/patches/patch-events.c
diff -r0 -r1.1 pkgsrc/wm/olvwm/patches/patch-olwm.h
diff -r0 -r1.1 pkgsrc/wm/olvwm/patches/patch-selection.c
diff -r0 -r1.1 pkgsrc/wm/olvwm/patches/patch-selection.h
diff -r0 -r1.1 pkgsrc/wm/olvwm/patches/patch-slots.c
diff -r0 -r1.1 pkgsrc/wm/olvwm/patches/patch-slots.h
diff -r0 -r1.1 pkgsrc/wm/olvwm/patches/patch-st.h
diff -r0 -r1.1 pkgsrc/wm/olvwm/patches/patch-win.h
diff -r0 -r1.1 pkgsrc/wm/olvwm/patches/patch-winbusy.c
diff -r0 -r1.1 pkgsrc/wm/olvwm/patches/patch-winbutton.c
diff -r0 -r1.1 pkgsrc/wm/olvwm/patches/patch-wingframe.c
diff -r0 -r1.1 pkgsrc/wm/olvwm/patches/patch-winipane.c
diff -r0 -r1.1 pkgsrc/wm/olvwm/patches/patch-winnofoc.c
diff -r0 -r1.1 pkgsrc/wm/olvwm/patches/patch-winpane.c
diff -r0 -r1.1 pkgsrc/wm/olvwm/patches/patch-winpinmenu.c
diff -r0 -r1.1 pkgsrc/wm/olvwm/patches/patch-winpush.c
diff -r0 -r1.1 pkgsrc/wm/olvwm/patches/patch-winresize.c
diff -r0 -r1.1 pkgsrc/wm/olvwm/patches/patch-winroot.c
--- pkgsrc/wm/olvwm/distinfo 2007/08/08 20:40:48 1.5
+++ pkgsrc/wm/olvwm/distinfo 2013/03/28 21:40:10 1.6
| @@ -1,19 +1,37 @@ | | | @@ -1,19 +1,37 @@ |
1 | $NetBSD: distinfo,v 1.5 2007/08/08 20:40:48 joerg Exp $ | | 1 | $NetBSD: distinfo,v 1.6 2013/03/28 21:40:10 joerg Exp $ |
2 | | | 2 | |
3 | SHA1 (olvwm4.src4.tar.gz) = d8900f1aeccfc75924e922d9e86008462de12e62 | | 3 | SHA1 (olvwm4.src4.tar.gz) = d8900f1aeccfc75924e922d9e86008462de12e62 |
4 | RMD160 (olvwm4.src4.tar.gz) = 6523adb9a2f08829dbe6099e88ac031b1dd232a4 | | 4 | RMD160 (olvwm4.src4.tar.gz) = 6523adb9a2f08829dbe6099e88ac031b1dd232a4 |
5 | Size (olvwm4.src4.tar.gz) = 386560 bytes | | 5 | Size (olvwm4.src4.tar.gz) = 386560 bytes |
6 | SHA1 (patch-aa) = e0a4eaab392555e9e5adb3b7376a21e70f8fadb1 | | 6 | SHA1 (patch-aa) = e0a4eaab392555e9e5adb3b7376a21e70f8fadb1 |
7 | SHA1 (patch-ab) = c9e045f8dbc966feac732adb2ab53c531bdfa8cf | | 7 | SHA1 (patch-ab) = c9e045f8dbc966feac732adb2ab53c531bdfa8cf |
8 | SHA1 (patch-ac) = 157710147ecef7ff4ce3b167c7c6cdaa2449cf33 | | 8 | SHA1 (patch-ac) = 157710147ecef7ff4ce3b167c7c6cdaa2449cf33 |
9 | SHA1 (patch-ad) = d33f6afd90cfd21e038dfea456eb2d9e34ac8fc6 | | 9 | SHA1 (patch-ad) = 28b4f4cac1c94e787e68bbdb8ce859545f898528 |
10 | SHA1 (patch-ae) = 537fa9aed7555eede44b3b13cf2ef2ee5378dd3a | | 10 | SHA1 (patch-ae) = feb9b4effe6066021ac16e20b982a52211d1c7ba |
11 | SHA1 (patch-af) = 2a6d5ba368b91ac829b03f9c3b2d92073a0aaf26 | | 11 | SHA1 (patch-af) = 14d28f23cbf6cb37aeff124124bef3aa79d3e1a8 |
12 | SHA1 (patch-ag) = 9651a2a6acd3bc7acf04517f4eaf32b795c519f4 | | 12 | SHA1 (patch-ag) = 07a2294c9a42c047aff203844f1535766bc13a6f |
13 | SHA1 (patch-ah) = c3ed0d792a9cdaba4ae69fcd4482e0d612bc1cc7 | | 13 | SHA1 (patch-ah) = d3b1ed50b35d9c27bf6825474a36f9f94037f094 |
14 | SHA1 (patch-ai) = 186f9283f7eb31bf2c3ac296b505bdb487398107 | | 14 | SHA1 (patch-ai) = cb6dc2f0ccfcfe82aebc35baa4c8ad8359419d37 |
15 | SHA1 (patch-aj) = ca38388a38ae00f3085dccf7933517cb07a070bf | | 15 | SHA1 (patch-aj) = ca38388a38ae00f3085dccf7933517cb07a070bf |
16 | SHA1 (patch-ak) = 2b5caceb2022dd769cf3ad1eefbb25a924ade012 | | 16 | SHA1 (patch-ak) = c6898b31d134b72fb2c07dae0451d714fdad88de |
17 | SHA1 (patch-al) = 76e0eccf43e6a103ffdafad2692b5817ec138d14 | | 17 | SHA1 (patch-al) = 76e0eccf43e6a103ffdafad2692b5817ec138d14 |
18 | SHA1 (patch-am) = 801152c57c9e5b50a48f9091464d8cff3b4db0f5 | | 18 | SHA1 (patch-am) = 801152c57c9e5b50a48f9091464d8cff3b4db0f5 |
19 | SHA1 (patch-an) = 5e6e28b8f07184ec13420b3c2e24d9e7cc81957e | | 19 | SHA1 (patch-an) = 5e6e28b8f07184ec13420b3c2e24d9e7cc81957e |
| | | 20 | SHA1 (patch-events.c) = bea715d047938cfc1d7abddb016be8e238a272c8 |
| | | 21 | SHA1 (patch-olwm.h) = 54a75c473fa4978170e5f606cb03fc9359bd97c9 |
| | | 22 | SHA1 (patch-selection.c) = c18c1d39b3b81a976b120d5bd609132b4521d854 |
| | | 23 | SHA1 (patch-selection.h) = d38718ecc7e606f72ef90249a7485b908d22fa48 |
| | | 24 | SHA1 (patch-slots.c) = 107a5795ea4edb8dbf18571c1ef004474df4427d |
| | | 25 | SHA1 (patch-slots.h) = 8c12e3c02142bd4899fc49bf1f857676e7db24ff |
| | | 26 | SHA1 (patch-st.h) = 8425fc18906edfba6c79b51db774d84e34702e9a |
| | | 27 | SHA1 (patch-win.h) = c76ad39d1f2a53ce1652a155dad11d7d780b14b3 |
| | | 28 | SHA1 (patch-winbusy.c) = e6fc21ee47a37c3630d9ed697f4e5c8f814e3f26 |
| | | 29 | SHA1 (patch-winbutton.c) = aa9fcc005ee13c3b0605bd2a2aeb83913a5f6a31 |
| | | 30 | SHA1 (patch-wingframe.c) = 38d12809953a567105b865b6c2f5916fd718287e |
| | | 31 | SHA1 (patch-winipane.c) = eea35770b3c15903b75e6d006765c1fc298c36ec |
| | | 32 | SHA1 (patch-winnofoc.c) = bc8dfb61c726e2aca04959aa3de74b64ed88c443 |
| | | 33 | SHA1 (patch-winpane.c) = db8dd3ff760e333976acd6fa362325ddcfbe792e |
| | | 34 | SHA1 (patch-winpinmenu.c) = fdae4ac8081fffa45adf2967fcb6849af5fc3923 |
| | | 35 | SHA1 (patch-winpush.c) = 13188fcc22d80185e6757137076449bff8a2790d |
| | | 36 | SHA1 (patch-winresize.c) = a96aea080330eeec4f84f37394ebb485670aa707 |
| | | 37 | SHA1 (patch-winroot.c) = e9d71732e0c11fc295bbc64cd0c228b8a6018b1d |
--- pkgsrc/wm/olvwm/patches/patch-ad 2000/12/12 02:03:48 1.1.1.1
+++ pkgsrc/wm/olvwm/patches/patch-ad 2013/03/28 21:40:10 1.2
| @@ -1,21 +1,64 @@ | | | @@ -1,21 +1,64 @@ |
1 | $NetBSD: patch-ad,v 1.1.1.1 2000/12/12 02:03:48 wiz Exp $ | | 1 | $NetBSD: patch-ad,v 1.2 2013/03/28 21:40:10 joerg Exp $ |
2 | | | 2 | |
3 | --- olvwmrc.y.orig Wed Apr 28 23:27:20 1999 | | 3 | --- olvwmrc.y.orig 2000-03-02 21:39:55.000000000 +0000 |
4 | +++ olvwmrc.y Sat Jan 8 00:46:36 2000 | | 4 | +++ olvwmrc.y |
5 | @@ -37,7 +37,7 @@ | | 5 | @@ -37,7 +37,7 @@ extern CheckForKeyProg(); |
6 | char *LookupToken(); | | 6 | char *LookupToken(); |
7 | char *FindOlvwmRC(); | | 7 | char *FindOlvwmRC(); |
8 | void resetKeys(); | | 8 | void resetKeys(); |
9 | -char *strexpand(); | | 9 | -char *strexpand(); |
10 | +static char *strexpand(); | | 10 | +static char *strexpand(); |
11 | | | 11 | |
12 | typedef struct progscreen { | | 12 | typedef struct progscreen { |
13 | char *target; | | 13 | char *target; |
14 | @@ -527,7 +527,6 @@ | | 14 | @@ -527,7 +527,6 @@ String : WORD |
15 | } | | 15 | } |
16 | %% | | 16 | %% |
17 | /* Programs */ | | 17 | /* Programs */ |
18 | -#define YYDEBUG 1 | | 18 | -#define YYDEBUG 1 |
19 | #include "parse.c" | | 19 | #include "parse.c" |
20 | | | 20 | |
21 | extern List *ActiveClientList; | | 21 | extern List *ActiveClientList; |
| | | 22 | @@ -773,10 +772,7 @@ static void clientSaveFocus(); |
| | | 23 | static void clientRestoreFocus(); |
| | | 24 | |
| | | 25 | static int |
| | | 26 | -applyAction(p, cli) |
| | | 27 | - ProgKeyNode *p; |
| | | 28 | - Client *cli; |
| | | 29 | - |
| | | 30 | +applyAction(ProgKeyNode *p, Client *cli) |
| | | 31 | { |
| | | 32 | Client *c; |
| | | 33 | char *s, *t; |
| | | 34 | @@ -1160,7 +1156,7 @@ struct stat statbuf; |
| | | 35 | for (c = ListEnum(&l); c != NULL; c = ListEnum(&l)) { |
| | | 36 | if (findClient(c, ie->identifier)) { |
| | | 37 | ListApply(ie->doIf, applyAction, c); |
| | | 38 | - return; |
| | | 39 | + return False; |
| | | 40 | } |
| | | 41 | } |
| | | 42 | ListApply(ie->doElse, applyAction, cli); |
| | | 43 | @@ -1251,10 +1247,7 @@ struct stat tmp; |
| | | 44 | static struct stat olvwmBuf; |
| | | 45 | static struct stat olvwmOldBuf; |
| | | 46 | |
| | | 47 | -InitOlvwmRC(ldpy, path) |
| | | 48 | - Display *ldpy; |
| | | 49 | - char *path; |
| | | 50 | - |
| | | 51 | +void InitOlvwmRC(Display *ldpy, char *path) |
| | | 52 | { |
| | | 53 | |
| | | 54 | if (path == NULL) |
| | | 55 | @@ -1276,8 +1269,7 @@ InitOlvwmRC(ldpy, path) |
| | | 56 | /* |
| | | 57 | * Check to see if olvwmrc has been changed since we last read it |
| | | 58 | */ |
| | | 59 | -CheckOlvwmRC(dpy) |
| | | 60 | - Display *dpy; |
| | | 61 | +void CheckOlvwmRC(Display *dpy) |
| | | 62 | { |
| | | 63 | char *p = FindOlvwmRC(&olvwmBuf); |
| | | 64 | extern XrmDatabase OlwmDB; |
--- pkgsrc/wm/olvwm/patches/patch-ae 2000/12/12 02:03:48 1.1.1.1
+++ pkgsrc/wm/olvwm/patches/patch-ae 2013/03/28 21:40:10 1.2
| @@ -1,18 +1,26 @@ | | | @@ -1,18 +1,26 @@ |
1 | $NetBSD: patch-ae,v 1.1.1.1 2000/12/12 02:03:48 wiz Exp $ | | 1 | $NetBSD: patch-ae,v 1.2 2013/03/28 21:40:10 joerg Exp $ |
2 | | | 2 | |
3 | --- olwm.c.orig Sat Jan 8 00:25:00 2000 | | 3 | --- olwm.c.orig 2000-03-02 21:43:52.000000000 +0000 |
4 | +++ olwm.c Sat Jan 8 00:25:06 2000 | | 4 | +++ olwm.c |
5 | @@ -675,12 +675,11 @@ | | 5 | @@ -67,6 +67,7 @@ GlobalResourceVariables GRV; /* variabl |
| | | 6 | XrmDatabase OlwmDB; /* the main resource database */ |
| | | 7 | Display *DefDpy; /* the display connection */ |
| | | 8 | |
| | | 9 | +void InitOlvwmRC(Display *ldpy, char *path); |
| | | 10 | |
| | | 11 | #ifdef DEBUG |
| | | 12 | |
| | | 13 | @@ -675,12 +676,11 @@ ReapChildren() |
6 | { | | 14 | { |
7 | #ifdef SYSV | | 15 | #ifdef SYSV |
8 | pid_t pid; | | 16 | pid_t pid; |
9 | - int status; | | 17 | - int status; |
10 | #else | | 18 | #else |
11 | int oldmask; | | 19 | int oldmask; |
12 | int pid; | | 20 | int pid; |
13 | - union wait status; | | 21 | - union wait status; |
14 | #endif | | 22 | #endif |
15 | + int status; | | 23 | + int status; |
16 | | | 24 | |
17 | if (!deadChildren) | | 25 | if (!deadChildren) |
18 | return; | | 26 | return; |
--- pkgsrc/wm/olvwm/patches/patch-af 2000/12/12 02:03:48 1.1.1.1
+++ pkgsrc/wm/olvwm/patches/patch-af 2013/03/28 21:40:10 1.2
| @@ -1,20 +1,54 @@ | | | @@ -1,20 +1,54 @@ |
1 | $NetBSD: patch-af,v 1.1.1.1 2000/12/12 02:03:48 wiz Exp $ | | 1 | $NetBSD: patch-af,v 1.2 2013/03/28 21:40:10 joerg Exp $ |
2 | | | 2 | |
3 | --- screen.c.orig Sat Jan 8 00:34:00 2000 | | 3 | --- screen.c.orig 2000-03-02 21:43:02.000000000 +0000 |
4 | +++ screen.c Sat Jan 8 00:34:05 2000 | | 4 | +++ screen.c |
5 | @@ -157,6 +157,15 @@ | | 5 | @@ -157,6 +157,16 @@ static XrmQuark virtualPixmapColorIQ; |
6 | * Local Functions | | 6 | * Local Functions |
7 | *-------------------------------------------------------------------------*/ | | 7 | *-------------------------------------------------------------------------*/ |
8 | | | 8 | |
9 | +static updateScreenWorkspaceColor(); | | 9 | +static updateScreenWorkspaceColor(); |
10 | +static updateScreenWindowColor(); | | 10 | +static updateScreenWindowColor(); |
11 | +static updateScreenForegroundColor(); | | 11 | +static updateScreenForegroundColor(); |
12 | +static updateScreenBackgroundColor(); | | 12 | +static updateScreenBackgroundColor(); |
13 | +static updateScreenBorderColor(); | | 13 | +static updateScreenBorderColor(); |
14 | +static updateScreenInputFocusColor(); | | 14 | +static updateScreenInputFocusColor(); |
15 | +static updateScreenGlyphFont(); | | 15 | +static updateScreenGlyphFont(); |
| | | 16 | +static void UpdateScreenVirtualPixmapColor(Display *dpy, ScreenInfo *scrInfo); |
16 | + | | 17 | + |
17 | + | | 18 | + |
18 | /* | | 19 | /* |
19 | * makeScreenQuarks -- set up quarks for screen resources | | 20 | * makeScreenQuarks -- set up quarks for screen resources |
20 | */ | | 21 | */ |
| | | 22 | @@ -2422,9 +2432,7 @@ UpdateScreenVirtualFont(dpy,scrInfo) |
| | | 23 | /* |
| | | 24 | */ |
| | | 25 | /* ARGSUSED */ |
| | | 26 | -UpdateScreenVirtualGeometry(dpy,scrInfo) |
| | | 27 | - Display *dpy; |
| | | 28 | - ScreenInfo *scrInfo; |
| | | 29 | +void UpdateScreenVirtualGeometry(Display *dpy, ScreenInfo *scrInfo) |
| | | 30 | { |
| | | 31 | char *geom; |
| | | 32 | |
| | | 33 | @@ -2439,9 +2447,7 @@ char *geom; |
| | | 34 | VirtualSetGeometry(scrInfo->vdm->client->framewin, geom); |
| | | 35 | } |
| | | 36 | |
| | | 37 | -UpdateScreenVirtualMap(dpy,scrInfo) |
| | | 38 | - Display *dpy; |
| | | 39 | - ScreenInfo *scrInfo; |
| | | 40 | +void UpdateScreenVirtualMap(Display *dpy, ScreenInfo *scrInfo) |
| | | 41 | { |
| | | 42 | char *name; |
| | | 43 | XSizeHints *sizeHints; |
| | | 44 | @@ -2475,9 +2481,7 @@ long sizeSet; |
| | | 45 | } |
| | | 46 | } |
| | | 47 | |
| | | 48 | -UpdateScreenVirtualPixmapColor(dpy,scrInfo) |
| | | 49 | - Display *dpy; |
| | | 50 | - ScreenInfo *scrInfo; |
| | | 51 | +static void UpdateScreenVirtualPixmapColor(Display *dpy, ScreenInfo *scrInfo) |
| | | 52 | { |
| | | 53 | if (!scrInfo->vdm->resources->background) |
| | | 54 | return; |
--- pkgsrc/wm/olvwm/patches/patch-ag 2000/12/12 02:03:48 1.1.1.1
+++ pkgsrc/wm/olvwm/patches/patch-ag 2013/03/28 21:40:10 1.2
| @@ -1,13 +1,25 @@ | | | @@ -1,13 +1,25 @@ |
1 | $NetBSD: patch-ag,v 1.1.1.1 2000/12/12 02:03:48 wiz Exp $ | | 1 | $NetBSD: patch-ag,v 1.2 2013/03/28 21:40:10 joerg Exp $ |
2 | | | 2 | |
3 | --- st.c.orig Sat Jan 8 00:34:44 2000 | | 3 | --- st.c.orig 2000-03-02 21:40:47.000000000 +0000 |
4 | +++ st.c Sat Jan 8 00:35:22 2000 | | 4 | +++ st.c |
5 | @@ -44,6 +44,8 @@ | | 5 | @@ -44,6 +44,8 @@ |
6 | (table->hash == ST_NUMHASH) ? ((int) (key) % table->num_bins) :\ | | 6 | (table->hash == ST_NUMHASH) ? ((int) (key) % table->num_bins) :\ |
7 | (*table->hash)((key), table->num_bins))*/ | | 7 | (*table->hash)((key), table->num_bins))*/ |
8 | | | 8 | |
9 | +static rehash(); | | 9 | +static rehash(); |
10 | + | | 10 | + |
11 | st_table *st_init_table_with_params(compare, hash, size, density, grow_factor, | | 11 | st_table *st_init_table_with_params(compare, hash, size, density, grow_factor, |
12 | reorder_flag) | | 12 | reorder_flag) |
13 | int (*compare)(); | | 13 | int (*compare)(); |
| | | 14 | @@ -320,10 +322,7 @@ char **value; |
| | | 15 | return 0; |
| | | 16 | } |
| | | 17 | |
| | | 18 | -st_foreach(table, func, arg) |
| | | 19 | -st_table *table; |
| | | 20 | -enum st_retval (*func)(); |
| | | 21 | -char *arg; |
| | | 22 | +void st_foreach(st_table *table, enum st_retval (*func)(), char *arg) |
| | | 23 | { |
| | | 24 | st_table_entry *ptr, *last, *tmp; |
| | | 25 | enum st_retval retval; |
--- pkgsrc/wm/olvwm/patches/patch-ai 2000/12/12 02:03:48 1.1.1.1
+++ pkgsrc/wm/olvwm/patches/patch-ai 2013/03/28 21:40:11 1.2
| @@ -1,12 +1,35 @@ | | | @@ -1,12 +1,35 @@ |
1 | $NetBSD: patch-ai,v 1.1.1.1 2000/12/12 02:03:48 wiz Exp $ | | 1 | $NetBSD: patch-ai,v 1.2 2013/03/28 21:40:11 joerg Exp $ |
2 | | | 2 | |
3 | --- winframe.c.orig Sat Jan 8 00:38:12 2000 | | 3 | --- winframe.c.orig 2000-03-02 21:41:53.000000000 +0000 |
4 | +++ winframe.c Sat Jan 8 00:38:49 2000 | | 4 | +++ winframe.c |
5 | @@ -84,6 +84,7 @@ | | 5 | @@ -51,6 +51,7 @@ extern Atom AtomRightIMStatus; |
| | | 6 | extern int Resize_height, Resize_width; |
| | | 7 | |
| | | 8 | extern Time TimeFresh(); |
| | | 9 | +void PaintVirtualWindow(WinGenericFrame *win); |
| | | 10 | |
| | | 11 | /*************************************************************************** |
| | | 12 | * private data |
| | | 13 | @@ -84,6 +85,7 @@ void FrameUpdateShape(); |
6 | static void setIMStatusText(); | | 14 | static void setIMStatusText(); |
7 | #endif | | 15 | #endif |
8 | static void updateResizePositions(); | | 16 | static void updateResizePositions(); |
9 | +static int headerHeight(); | | 17 | +static int headerHeight(); |
10 | | | 18 | |
11 | /*************************************************************************** | | 19 | /*************************************************************************** |
12 | * sizing and decoration positioning functions | | 20 | * sizing and decoration positioning functions |
| | | 21 | @@ -484,12 +486,8 @@ WinPaneFrame *frameInfo; |
| | | 22 | * the focus. Also, unset the warp-back flag if the pointer has gone outside |
| | | 23 | * the frame. |
| | | 24 | */ |
| | | 25 | -static int |
| | | 26 | -/* ARGSUSED */ |
| | | 27 | -eventLeaveNotify(dpy, event, frameInfo) |
| | | 28 | -Display *dpy; |
| | | 29 | -XEvent *event; |
| | | 30 | -WinPaneFrame *frameInfo; |
| | | 31 | +static void |
| | | 32 | +eventLeaveNotify(Display *dpy, XEvent *event, WinPaneFrame *frameInfo) |
| | | 33 | { |
| | | 34 | /* ignore events caused by grabs */ |
| | | 35 | if (event->xcrossing.mode != NotifyNormal) |
--- pkgsrc/wm/olvwm/patches/patch-ak 2000/12/12 02:03:48 1.1.1.1
+++ pkgsrc/wm/olvwm/patches/patch-ak 2013/03/28 21:40:11 1.2
| @@ -1,30 +1,39 @@ | | | @@ -1,30 +1,39 @@ |
1 | $NetBSD: patch-ak,v 1.1.1.1 2000/12/12 02:03:48 wiz Exp $ | | 1 | $NetBSD: patch-ak,v 1.2 2013/03/28 21:40:11 joerg Exp $ |
2 | | | 2 | |
3 | --- usermenu.c.orig Thu Mar 2 22:41:31 2000 | | 3 | --- usermenu.c.orig 2000-03-02 21:41:31.000000000 +0000 |
4 | +++ usermenu.c Tue Jun 6 19:24:12 2000 | | 4 | +++ usermenu.c |
5 | @@ -884,7 +884,7 @@ | | 5 | @@ -193,7 +193,7 @@ extern int StartDSDMFunc(); |
| | | 6 | extern int StopDSDMFunc(); |
| | | 7 | |
| | | 8 | extern int GenWinMenuFunc(); |
| | | 9 | -extern int GenDirMenuFunc(); |
| | | 10 | +void GenDirMenuFunc(Display *dpy, MenuInfo *menuInfo, int bindex, MenuCache *cache, WinGeneric *winInfo, int depth); |
| | | 11 | extern int StickSelnFunc(); |
| | | 12 | extern int MoveDesktopFunc(); |
| | | 13 | |
| | | 14 | @@ -884,7 +884,7 @@ makeMenuSearchPath() |
6 | home = "."; | | 15 | home = "."; |
7 | | | 16 | |
8 | if ((owHome = getenv("OPENWINHOME")) == NULL) | | 17 | if ((owHome = getenv("OPENWINHOME")) == NULL) |
9 | - owHome = "/usr/openwin"; | | 18 | - owHome = "/usr/openwin"; |
10 | + owHome = PREFIX; | | 19 | + owHome = PREFIX; |
11 | | | 20 | |
12 | menuSearchPath = (char **)MemAlloc(NUM_SEARCH_PATH*sizeof(char *)); | | 21 | menuSearchPath = (char **)MemAlloc(NUM_SEARCH_PATH*sizeof(char *)); |
13 | | | 22 | |
14 | @@ -899,16 +899,6 @@ | | 23 | @@ -900,16 +900,6 @@ makeMenuSearchPath() |
15 | /* $HOME/.<menufile> */ | | | |
16 | sprintf(buf, "%s/.%%s", home); | | 24 | sprintf(buf, "%s/.%%s", home); |
17 | menuSearchPath[i++] = MemNewString(buf); | | 25 | menuSearchPath[i++] = MemNewString(buf); |
18 | - | | 26 | |
19 | -#ifdef OW_I18N_L3 | | 27 | -#ifdef OW_I18N_L3 |
20 | - /* $OPENWINHOME/share/locale/<locale>/olwm/<menufile> */ | | 28 | - /* $OPENWINHOME/share/locale/<locale>/olwm/<menufile> */ |
21 | - sprintf(buf, "%s/share/locale/%%2$s/olwm/%%1$s", owHome); | | 29 | - sprintf(buf, "%s/share/locale/%%2$s/olwm/%%1$s", owHome); |
22 | - menuSearchPath[i++] = MemNewString(buf); | | 30 | - menuSearchPath[i++] = MemNewString(buf); |
23 | - | | 31 | - |
24 | - /* $OPENWINHOME/lib/<menufile>.<locale> */ | | 32 | - /* $OPENWINHOME/lib/<menufile>.<locale> */ |
25 | - sprintf(buf, "%s/lib/%%1$s.%%2$s", owHome); | | 33 | - sprintf(buf, "%s/lib/%%1$s.%%2$s", owHome); |
26 | - menuSearchPath[i++] = MemNewString(buf); | | 34 | - menuSearchPath[i++] = MemNewString(buf); |
27 | -#endif | | 35 | -#endif |
28 | | | 36 | - |
29 | /* $OPENWINHOME/lib/<menufile> */ | | 37 | /* $OPENWINHOME/lib/<menufile> */ |
30 | sprintf(buf, "%s/lib/%%s", owHome); | | 38 | sprintf(buf, "%s/lib/%%s", owHome); |
| | | 39 | menuSearchPath[i++] = MemNewString(buf); |
--- pkgsrc/wm/olvwm/patches/patch-ah 2006/01/19 23:15:59 1.2
+++ pkgsrc/wm/olvwm/patches/patch-ah 2013/03/28 21:40:10 1.3
| @@ -1,46 +1,95 @@ | | | @@ -1,46 +1,95 @@ |
1 | $NetBSD: patch-ah,v 1.2 2006/01/19 23:15:59 joerg Exp $ | | 1 | $NetBSD: patch-ah,v 1.3 2013/03/28 21:40:10 joerg Exp $ |
2 | | | 2 | |
3 | --- virtual.c.orig 2000-03-02 21:41:11.000000000 +0000 | | 3 | --- virtual.c.orig 2000-03-02 21:41:11.000000000 +0000 |
4 | +++ virtual.c | | 4 | +++ virtual.c |
5 | @@ -4,6 +4,7 @@ | | 5 | @@ -4,6 +4,7 @@ |
6 | */ | | 6 | */ |
7 | | | 7 | |
8 | #include <sys/types.h> | | 8 | #include <sys/types.h> |
9 | +#include <limits.h> | | 9 | +#include <limits.h> |
10 | #include <stdio.h> | | 10 | #include <stdio.h> |
11 | #include <string.h> | | 11 | #include <string.h> |
12 | #include <dirent.h> | | 12 | #include <dirent.h> |
13 | @@ -69,6 +70,9 @@ extern Button *MakeUpLeftButton(),*MakeL | | 13 | @@ -48,6 +49,8 @@ regexp *expbuf; |
| | | 14 | #ident "@(#)virtual.c 1.6 olvwm version 01/07/94" |
| | | 15 | #endif |
| | | 16 | |
| | | 17 | +void PaintVirtualWindow(WinGenericFrame *win); |
| | | 18 | + |
| | | 19 | /* Class Function Vector; a virtual pane is the VDM window in which all |
| | | 20 | * the little virtual windows appear (and to which said windows are |
| | | 21 | * parented) |
| | | 22 | @@ -69,6 +72,9 @@ extern Button *MakeUpLeftButton(),*MakeL |
14 | | | 23 | |
15 | extern char *ExpandPath(); | | 24 | extern char *ExpandPath(); |
16 | | | 25 | |
17 | +static int rexMatch(); | | 26 | +static int rexMatch(); |
18 | +static int rexInit(); | | 27 | +static int rexInit(); |
19 | + | | 28 | + |
20 | /* | | 29 | /* |
21 | * Semantic action associated with each of the buttons above. These must | | 30 | * Semantic action associated with each of the buttons above. These must |
22 | * be in the same order as the button array; it would be better if the Button | | 31 | * be in the same order as the button array; it would be better if the Button |
23 | @@ -1982,8 +1986,13 @@ struct _menu *menu; | | 32 | @@ -639,11 +645,8 @@ SemanticAction action; |
| | | 33 | * |
| | | 34 | * Event functions for the VDM |
| | | 35 | */ |
| | | 36 | -static |
| | | 37 | -vdmExpose(dpy, event, winInfo) |
| | | 38 | - Display *dpy; |
| | | 39 | - XEvent *event; |
| | | 40 | - WinGeneric *winInfo; |
| | | 41 | +static void |
| | | 42 | +vdmExpose(Display *dpy, XEvent *event, WinGeneric *winInfo) |
| | | 43 | { |
| | | 44 | XEvent dummy; |
| | | 45 | |
| | | 46 | @@ -1309,9 +1312,8 @@ int length; |
| | | 47 | /* |
| | | 48 | * Refresh the window's virtual representation |
| | | 49 | */ |
| | | 50 | -int |
| | | 51 | -PaintVirtualWindow(win) |
| | | 52 | - WinGenericFrame *win; |
| | | 53 | +void |
| | | 54 | +PaintVirtualWindow(WinGenericFrame *win) |
| | | 55 | { |
| | | 56 | Client *cli = win->core.client; |
| | | 57 | int length; |
| | | 58 | @@ -1969,21 +1971,19 @@ cmpButton(b1, b2) |
| | | 59 | * |
| | | 60 | */ |
| | | 61 | /* ARGSUSED */ |
| | | 62 | -GenDirMenuFunc(dpy, menuInfo, bindex, cache, winInfo, depth) |
| | | 63 | - Display *dpy; |
| | | 64 | - MenuInfo *menuInfo; |
| | | 65 | - int bindex; |
| | | 66 | - MenuCache *cache; |
| | | 67 | - WinGeneric *winInfo; |
| | | 68 | - int depth; |
| | | 69 | - |
| | | 70 | +void GenDirMenuFunc(Display *dpy, MenuInfo *menuInfo, int bindex, MenuCache *cache, WinGeneric *winInfo, int depth) |
| | | 71 | { |
| | | 72 | struct _menu *menu; |
24 | DIR *dir; | | 73 | DIR *dir; |
25 | struct dirent *ent; | | 74 | struct dirent *ent; |
26 | Button *b; | | 75 | Button *b; |
27 | +#if defined(NAME_MAX) | | 76 | +#if defined(NAME_MAX) |
28 | +char s[NAME_MAX], dirname[MAXPATHLEN - NAME_MAX], *newname, *ExpandPath(); | | 77 | +char s[NAME_MAX], dirname[MAXPATHLEN - NAME_MAX], *newname, *ExpandPath(); |
29 | +char pattern[NAME_MAX]; | | 78 | +char pattern[NAME_MAX]; |
30 | +#else | | 79 | +#else |
31 | char s[MAXNAMLEN], dirname[MAXPATHLEN - MAXNAMLEN], *newname, *ExpandPath(); | | 80 | char s[MAXNAMLEN], dirname[MAXPATHLEN - MAXNAMLEN], *newname, *ExpandPath(); |
32 | char pattern[MAXNAMLEN]; | | 81 | char pattern[MAXNAMLEN]; |
33 | +#endif | | 82 | +#endif |
34 | extern int AppMenuFunc(); | | 83 | extern int AppMenuFunc(); |
35 | MenuCache *menuCache; | | 84 | MenuCache *menuCache; |
36 | int slot; | | 85 | int slot; |
37 | @@ -2108,7 +2117,9 @@ int val; | | 86 | @@ -2108,7 +2108,9 @@ int val; |
38 | } | | 87 | } |
39 | } | | 88 | } |
40 | | | 89 | |
41 | +#ifndef REGEXP | | 90 | +#ifndef REGEXP |
42 | static char expbuf[256]; | | 91 | static char expbuf[256]; |
43 | +#endif | | 92 | +#endif |
44 | | | 93 | |
45 | static | | 94 | static |
46 | rexMatch(string) | | 95 | rexMatch(string) |
$NetBSD: patch-events.c,v 1.1 2013/03/28 21:40:11 joerg Exp $
--- events.c.orig 2013-03-28 19:14:44.000000000 +0000
+++ events.c
@@ -38,6 +38,8 @@
/* ===== externs ========================================================== */
+void CheckOlvwmRC(Display *dpy);
+
extern void ReapChildren();
/* ===== globals ========================================================== */
$NetBSD: patch-olwm.h,v 1.1 2013/03/28 21:40:11 joerg Exp $
--- olwm.h.orig 2013-03-28 19:18:35.000000000 +0000
+++ olwm.h
@@ -107,7 +107,6 @@ extern struct _wingeneric *NoFocusWinInf
extern struct _wingeneric *MakeNoFocus();
extern void NoFocusTakeFocus();
extern void NoFocusInit();
-extern int NoFocusEventBeep();
/* client information and functions */
extern struct _List *ActiveClientList;
@@ -147,8 +146,6 @@ extern int GFrameSetConfigFunc();
extern void GFrameSetStack();
extern void GFrameSetConfig();
extern int GFrameEventButtonPress();
-extern int GFrameEventMotionNotify();
-extern int GFrameEventButtonRelease();
extern int GFrameEventFocus();
extern int GFrameEventEnterNotify();
@@ -187,7 +184,6 @@ extern void ColormapTransmogrify();
extern Bool IsSelected();
extern struct _client *EnumSelections();
extern Time TimeFresh();
-extern int AddSelection();
extern Bool RemoveSelection();
extern Bool ToggleSelection();
extern void ClearSelections();
$NetBSD: patch-selection.c,v 1.1 2013/03/28 21:40:11 joerg Exp $
--- selection.c.orig 2013-03-28 19:18:31.000000000 +0000
+++ selection.c
@@ -299,10 +299,8 @@ IsSelected(cli)
* Add this client to the list of clients on the PRIMARY selection and mark
* the client as being selected. Acquires the PRIMARY selection if necessary.
*/
-int
-AddSelection(cli, timestamp)
- Client *cli;
- Time timestamp;
+void
+AddSelection(Client *cli, Time timestamp)
{
List *l = selectList;
Client *tc;
$NetBSD: patch-selection.h,v 1.1 2013/03/28 21:40:11 joerg Exp $
--- selection.h.orig 2013-03-28 19:20:53.000000000 +0000
+++ selection.h
@@ -17,7 +17,6 @@
extern Time SelectionTime;
extern Bool IsSelected(/* client */);
-extern int AddSelection(/* client, time */);
extern Bool RemoveSelection(/* client */);
extern Bool ToggleSelection(/* client, time */);
extern void ClearSelections(/* dpy */);
$NetBSD: patch-slots.c,v 1.1 2013/03/28 21:40:11 joerg Exp $
--- slots.c.orig 2013-03-28 19:21:20.000000000 +0000
+++ slots.c
@@ -535,8 +535,7 @@ Bool snaptogrid;
* Note that if this code is changed, the similar code in SlotSetLocations
* may need to be changed also.
*/
-SlotFree(winicon)
-WinIconFrame *winicon;
+void SlotFree(WinIconFrame *winicon)
{
IconGrid *iconGrid = winicon->core.client->scrInfo->iconGrid;
@@ -566,9 +565,7 @@ WinIconFrame *winicon;
* in the new order.
*/
/*ARGSUSED*/
-SlotSetLocations(dpy,iconGrid)
-Display *dpy;
-IconGrid *iconGrid;
+void SlotSetLocations(Display *dpy, IconGrid *iconGrid)
{
List *lauto, *lpos;
List **l;
$NetBSD: patch-slots.h,v 1.1 2013/03/28 21:40:11 joerg Exp $
--- slots.h.orig 2013-03-28 19:21:57.000000000 +0000
+++ slots.h
@@ -45,12 +45,12 @@ extern struct _iconSlot *SlotAlloc(); /*
* parameter; False should be passed otherwise.
*/
-extern Bool SlotFree(); /* WinIcon * */
+void SlotFree(WinIconFrame *winicon);
/* An icon is going away, so its references to slots should also go
* away.
*/
-extern Bool SlotSetLocations(); /* Display *dpy */
+void SlotSetLocations(Display *dpy, IconGrid *iconGrid);
/* sets the order in which slots are allocated for icons which are
* not explicitly positioned. The new order is obtained from the
* global resource vector.
$NetBSD: patch-st.h,v 1.1 2013/03/28 21:40:11 joerg Exp $
--- st.h.orig 2013-03-28 19:24:02.000000000 +0000
+++ st.h
@@ -40,7 +40,8 @@ struct st_table {
enum st_retval {ST_CONTINUE, ST_STOP, ST_DELETE};
-int st_delete(), st_insert(), st_foreach(), st_free_table();
+void st_foreach(st_table *table, enum st_retval (*func)(), char *arg);
+int st_delete(), st_insert(), st_free_table();
int st_lookup(), st_find_or_add(), st_add_direct();
st_table *st_init_table(), *st_init_table_with_params();
$NetBSD: patch-win.h,v 1.1 2013/03/28 21:40:12 joerg Exp $
--- win.h.orig 2013-03-28 19:19:40.000000000 +0000
+++ win.h
@@ -573,4 +573,9 @@ extern int ShapeErrorBase;
extern Client *CurrentClient;
+void AddSelection(Client *cli, Time timestamp);
+void GFrameEventButtonRelease(Display *dpy, XEvent *event, WinGenericFrame *frameInfo);
+void GFrameEventMotionNotify(Display *dpy, XEvent *event, WinGenericFrame *frameInfo);
+void NoFocusEventBeep(Display *dpy, XEvent *event, WinGeneric *winInfo);
+
#endif /* _OLWM_WIN_H */
$NetBSD: patch-winbusy.c,v 1.1 2013/03/28 21:40:12 joerg Exp $
--- winbusy.c.orig 2013-03-28 19:26:50.000000000 +0000
+++ winbusy.c
@@ -30,6 +30,8 @@
#include "win.h"
#include "globals.h"
+void PaintVirtualWindow(WinGenericFrame *win);
+
/***************************************************************************
* global data
***************************************************************************/
$NetBSD: patch-winbutton.c,v 1.1 2013/03/28 21:40:12 joerg Exp $
--- winbutton.c.orig 2013-03-28 19:29:18.000000000 +0000
+++ winbutton.c
@@ -81,11 +81,8 @@ doUnhilite(act, mode, winInfo)
/*
* eventButtonPress - handle button press events on the close button window.
*/
-static int
-eventButtonPress(dpy, event, winInfo)
-Display *dpy;
-XEvent *event;
-WinButton *winInfo;
+static void
+eventButtonPress(Display *dpy, XEvent *event, WinButton *winInfo)
{
Client *cli = winInfo->core.client;
WinPaneFrame *winFrame = cli->framewin;
@@ -139,11 +136,8 @@ WinButton *winInfo;
* stop ignore events. This is so that double-clicking on the button doesn't
* close and then reopen the window (or perform the default action twice).
*/
-static int
-eventButtonRelease(dpy, event, winInfo)
-Display *dpy;
-XEvent *event;
-WinButton *winInfo;
+static void
+eventButtonRelease(Display *dpy, XEvent *event, WinButton *winInfo)
{
Client *cli = winInfo->core.client;
int x,y;
@@ -187,11 +181,8 @@ WinButton *winInfo;
/*
* eventMotionNotify - handle motion notify events on the close button window.
*/
-static int
-eventMotionNotify(dpy, event, winInfo)
-Display *dpy;
-XEvent *event;
-WinButton *winInfo;
+static void
+eventMotionNotify(Display *dpy, XEvent *event, WinButton *winInfo)
{
int x,y;
Client *cli = winInfo->core.client;
$NetBSD: patch-wingframe.c,v 1.1 2013/03/28 21:40:12 joerg Exp $
--- wingframe.c.orig 2013-03-28 19:57:02.000000000 +0000
+++ wingframe.c
@@ -275,11 +275,8 @@ int x,y,w,h;
* GFrameEventButtonRelease -- a button has been released
*
*/
-int
-GFrameEventButtonRelease(dpy, event, frameInfo)
-Display *dpy;
-XEvent *event;
-WinGenericFrame *frameInfo;
+void
+GFrameEventButtonRelease(Display *dpy, XEvent *event, WinGenericFrame *frameInfo)
{
WinGenericPane *winPane = (WinGenericPane*)frameInfo->fcore.panewin;
Client *cli = frameInfo->core.client;
@@ -344,11 +341,8 @@ WinGenericFrame *frameInfo;
/*
* GFrameEventMotionNotify -- a button is down and the pointer is moving
*/
-int
-GFrameEventMotionNotify(dpy, event, frameInfo)
-Display *dpy;
-XEvent *event;
-WinGenericFrame *frameInfo;
+void
+GFrameEventMotionNotify(Display *dpy, XEvent *event, WinGenericFrame *frameInfo)
{
/* We get this only after a Select press */
if (hadSelect == False) /* watch for erroneous motions */
$NetBSD: patch-winipane.c,v 1.1 2013/03/28 21:40:12 joerg Exp $
--- winipane.c.orig 2013-03-28 19:45:55.000000000 +0000
+++ winipane.c
@@ -72,10 +72,8 @@ static ClassPane classIconPane;
* drawIPane -- draw the pane window
*/
/*ARGSUSED*/ /* dpy arg will be used when multiple Displays supported */
-static int
-drawIPane(dpy, winInfo)
-Display *dpy;
-WinIconPane *winInfo;
+static void
+drawIPane(Display *dpy, WinIconPane *winInfo)
{
Window pane = winInfo->core.self;
GC gc;
$NetBSD: patch-winnofoc.c,v 1.1 2013/03/28 21:40:12 joerg Exp $
--- winnofoc.c.orig 2013-03-28 19:46:38.000000000 +0000
+++ winnofoc.c
@@ -230,11 +230,8 @@ ScreenInfo *scrInfo;
* NoFocusEventBeep -- beep on keyboard/mouse events for the no-focus window
* Also used by busy windows
*/
-int
-NoFocusEventBeep(dpy, event, winInfo)
-Display *dpy;
-XEvent *event;
-WinGeneric *winInfo;
+void
+NoFocusEventBeep(Display *dpy, XEvent *event, WinGeneric *winInfo)
{
XEvent dummy;
$NetBSD: patch-winpane.c,v 1.1 2013/03/28 21:40:12 joerg Exp $
--- winpane.c.orig 2013-03-28 19:47:39.000000000 +0000
+++ winpane.c
@@ -156,12 +156,9 @@ WinPane *winInfo;
/*
* eventExtension - handle extension events
*/
-static int
+static void
/* ARGSUSED */
-eventExtension(dpy, event, winInfo)
- Display *dpy;
- XEvent *event;
- WinPane *winInfo;
+eventExtension(Display *dpy, XEvent *event, WinPane *winInfo)
{
#ifdef SHAPE
XShapeEvent *se;
$NetBSD: patch-winpinmenu.c,v 1.1 2013/03/28 21:40:12 joerg Exp $
--- winpinmenu.c.orig 2013-03-28 19:48:07.000000000 +0000
+++ winpinmenu.c
@@ -84,11 +84,8 @@ afterMenuShow(win)
/*
* eventButtonPress - a button has gone down.
*/
-static int
-eventButtonPress(dpy, event, winInfo)
- Display *dpy;
- XEvent *event;
- WinPinMenu *winInfo;
+static void
+eventButtonPress(Display *dpy, XEvent *event, WinPinMenu *winInfo)
{
if (! StartMenuGrabs(dpy, winInfo))
return;
@@ -99,11 +96,8 @@ eventButtonPress(dpy, event, winInfo)
}
-static int
-eventKeyEvent(dpy, event, winInfo)
- Display *dpy;
- XEvent *event;
- WinPinMenu *winInfo;
+static void
+eventKeyEvent(Display *dpy, XEvent *event, WinPinMenu *winInfo)
{
MenuMakeFirst(winInfo->menuInfo, afterMenuShow, winInfo);
$NetBSD: patch-winpush.c,v 1.1 2013/03/28 21:40:12 joerg Exp $
--- winpush.c.orig 2013-03-28 19:49:07.000000000 +0000
+++ winpush.c
@@ -95,11 +95,8 @@ WinPushPin *winInfo;
/*
* eventButtonRelease - handle button release events on the pushpin window
*/
-static int
-eventButtonRelease(dpy, event, winInfo)
-Display *dpy;
-XEvent *event;
-WinPushPin *winInfo;
+static void
+eventButtonRelease(Display *dpy, XEvent *event, WinPushPin *winInfo)
{
FrameAllowEvents(winInfo->core.client, event->xbutton.time);
if (!AllButtonsUp(event))
@@ -121,11 +118,8 @@ WinPushPin *winInfo;
/*
* eventMotionNotify - handle pointer moves
*/
-static int
-eventMotionNotify(dpy, event, winInfo)
-Display *dpy;
-XEvent *event;
-WinPushPin *winInfo;
+static void
+eventMotionNotify(Display *dpy, XEvent *event, WinPushPin *winInfo)
{
Bool fInWindow;
Graphics_info *gisNormal = WinGI(winInfo,NORMAL_GINFO);
$NetBSD: patch-winresize.c,v 1.1 2013/03/28 21:40:12 joerg Exp $
--- winresize.c.orig 2013-03-28 19:49:55.000000000 +0000
+++ winresize.c
@@ -70,11 +70,8 @@ resizeCallback(dpy, winInfo)
/*
* eventButtonPress - handle button press events on the resize window
*/
-static int
-eventButtonPress(dpy, event, winInfo)
-Display *dpy;
-XEvent *event;
-WinResize *winInfo;
+static void
+eventButtonPress(Display *dpy, XEvent *event, WinResize *winInfo)
{
unsigned int ignoremask =
ModMaskMap[MOD_CONSTRAIN] | ModMaskMap[MOD_INVERT];
$NetBSD: patch-winroot.c,v 1.1 2013/03/28 21:40:12 joerg Exp $
--- winroot.c.orig 2013-03-28 19:50:18.000000000 +0000
+++ winroot.c
@@ -190,11 +190,8 @@ matchKeystrokeToSpec(event,spec)
* crossed through the root window into a child window, and we will get the
* EnterNotify for that child window.
*/
-static int
-eventEnterNotify(dpy, pEvent, winInfo)
- Display *dpy;
- XEvent *pEvent;
- WinRoot *winInfo;
+static void
+eventEnterNotify(Display *dpy, XEvent *pEvent, WinRoot *winInfo)
{
if (pEvent->xcrossing.detail == NotifyNonlinearVirtual)
return;
@@ -282,11 +279,8 @@ selectInBox(dpy, winInfo, boxX, boxY, bo
/*
* eventMotionNotify - the pointer is moving
*/
-static int
-eventMotionNotify(dpy, pEvent, winInfo)
- Display *dpy;
- XEvent *pEvent;
- WinRoot *winInfo;
+static void
+eventMotionNotify(Display *dpy, XEvent *pEvent, WinRoot *winInfo)
{
int (*selectFunc)();
@@ -336,11 +330,8 @@ eventMotionNotify(dpy, pEvent, winInfo)
* If the user clicks in the window, the focus is set to the no-focus window,
* and the PRIMARY and SECONDARY selections are acquired and nulled.
*/
-static int
-eventButtonRelease(dpy, pEvent, winInfo)
- Display *dpy;
- XEvent *pEvent;
- WinRoot *winInfo;
+static void
+eventButtonRelease(Display *dpy, XEvent *pEvent, WinRoot *winInfo)
{
if (!AllButtonsUp(pEvent))
return;
@@ -368,11 +359,8 @@ eventButtonRelease(dpy, pEvent, winInfo)
* or by issuing an AllowEvents request, and (3) ungrab the pointer if the
* child's handler didn't issue a grab of its own.
*/
-static int
-eventButtonPress(dpy, pEvent, winInfo)
- Display *dpy;
- XEvent *pEvent;
- WinRoot *winInfo;
+static void
+eventButtonPress(Display *dpy, XEvent *pEvent, WinRoot *winInfo)
{
SemanticAction a;
WinGeneric *child;
@@ -442,12 +430,9 @@ eventKeyPressRelease(dpy, pEvent, winInf
/*
* eventPropertyNotify - a root property has changed
*/
-static int
+static void
/* ARGSUSED */
-eventPropertyNotify(dpy, pEvent, winInfo)
- Display *dpy;
- XEvent *pEvent;
- WinRoot *winInfo;
+eventPropertyNotify(Display *dpy, XEvent *pEvent, WinRoot *winInfo)
{
unsigned long nitems, remain;
char *resourceString;