summaryrefslogtreecommitdiff
path: root/wm/uwm/patches/patch-ae
blob: ef583e405646b30eb074fbf902f42212cbc711ea (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
$NetBSD: patch-ae,v 1.2 2013/01/11 23:36:16 joerg Exp $

--- GetButton.c.orig	1988-10-24 10:08:17.000000000 +0000
+++ GetButton.c
@@ -59,6 +59,8 @@ static char *sccsid = "@(#)GetButton.c	3
 
 #define ICONSTR	(icon_str ? icon_str : "")
 
+static void CheckMap(Window window);
+
 Bool GetButton(button_event)
     XEvent *button_event;	/* Button event packet. */
 {
@@ -255,7 +257,8 @@ Bool GetButton(button_event)
     /* 
      * We convert the key pressed event to ascii.
      */
-    nbytes = XLookupString(kp_event, kbd_str, STRLEN, NULL);
+    nbytes = XLookupString(kp_event, kbd_str, STRLEN, (KeySym *) NULL,
+    				(XComposeStatus *) NULL);
 
     /*
      * If kbd_str is a "non-string", then don't do anything.
@@ -361,8 +364,9 @@ Bool GetButton(button_event)
     return(FALSE);
 }
 
-CheckMap(window)
-Window window;
+void AskUser(Display *dpy, int scr, Window window, int *x, int *y, int *width, int *height, XSizeHints *hints);
+
+static void CheckMap(Window window)
 {
     XSizeHints sizehints;
     XWMHints *wmhints;