summaryrefslogtreecommitdiff
path: root/x11-wm/afterstep1/files/patch-afterstep.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11-wm/afterstep1/files/patch-afterstep.c')
-rw-r--r--x11-wm/afterstep1/files/patch-afterstep.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/x11-wm/afterstep1/files/patch-afterstep.c b/x11-wm/afterstep1/files/patch-afterstep.c
new file mode 100644
index 000000000000..3bcae93d04f6
--- /dev/null
+++ b/x11-wm/afterstep1/files/patch-afterstep.c
@@ -0,0 +1,29 @@
+--- afterstep/afterstep.c.orig 1997-05-04 15:19:57 UTC
++++ afterstep/afterstep.c
+@@ -147,7 +147,7 @@ char *display_name = NULL;
+ *
+ ***********************************************************************
+ */
+-void main(int argc, char **argv)
++int main(int argc, char **argv)
+ {
+ unsigned long valuemask; /* mask for create windows */
+ XSetWindowAttributes attributes; /* attributes for create windows */
+@@ -463,7 +463,7 @@ void main(int argc, char **argv)
+
+ XDefineCursor(dpy, Scr.Root, Scr.ASCursors[DEFAULT]);
+ HandleEvents();
+- return;
++ return 0;
+ }
+
+ /***********************************************************************
+@@ -787,7 +787,7 @@ void InitModifiers(void)
+ for (i = 0; i < mm->max_keypermod; i++)
+ {
+ if ((kc = *kp++) &&
+- ((ks = XKeycodeToKeysym(dpy, kc, 0)) != NoSymbol))
++ ((ks = XkbKeycodeToKeysym(dpy, kc, 0, 0)) != NoSymbol))
+ {
+ kn = XKeysymToString(ks);
+ knl = strlen(kn);