summaryrefslogtreecommitdiff
path: root/wm/olvwm/patches/patch-winbutton.c
blob: 7b9ba8c814ed8b50a953d6ccdd1a4c52808f1d1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
$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;