aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authorwxs <wxs@FreeBSD.org>2011-06-30 09:33:37 +0800
committerwxs <wxs@FreeBSD.org>2011-06-30 09:33:37 +0800
commitafc08c422fb1ffe3a3b92efb5f46df041796f3d6 (patch)
treead4b881ac090b4fa03074141d0130ad3da519805 /x11
parent784a291ee56d820cd5ad01daf5f838fdcfe1f616 (diff)
downloadfreebsd-ports-gnome-afc08c422fb1ffe3a3b92efb5f46df041796f3d6.tar.gz
freebsd-ports-gnome-afc08c422fb1ffe3a3b92efb5f46df041796f3d6.tar.zst
freebsd-ports-gnome-afc08c422fb1ffe3a3b92efb5f46df041796f3d6.zip
- Fix build under clang, and clean up some warnings while I'm here.
Diffstat (limited to 'x11')
-rw-r--r--x11/keynav/files/patch-keynav.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/x11/keynav/files/patch-keynav.c b/x11/keynav/files/patch-keynav.c
new file mode 100644
index 000000000000..0e327e721287
--- /dev/null
+++ b/x11/keynav/files/patch-keynav.c
@@ -0,0 +1,38 @@
+--- ./keynav.c.orig 2011-06-29 20:24:04.335382341 -0400
++++ ./keynav.c 2011-06-29 21:21:31.846377864 -0400
+@@ -10,6 +10,7 @@
+ #include <unistd.h>
+ #include <string.h>
+ #include <errno.h>
++#include <ctype.h>
+ #include <sys/types.h>
+ #include <sys/wait.h>
+ #include <signal.h>
+@@ -174,6 +175,8 @@
+ void query_screen_normal();
+ int viewport_sort(const void *a, const void *b);
+ int query_current_screen();
++int query_current_screen_xinerama();
++int query_current_screen_normal();
+ void viewport_left();
+ void viewport_right();
+ int pointinrect(int px, int py, int rx, int ry, int rw, int rh);
+@@ -1029,7 +1032,8 @@
+ Window curwin;
+ Window rootwin;
+ Window dummy_win;
+- int x, y, width, height, border_width, depth;
++ int x, y;
++ unsigned int width, height, border_width, depth;
+
+ xdo_window_get_active(xdo, &curwin);
+ XGetGeometry(xdo->xdpy, curwin, &rootwin, &x, &y, &width, &height,
+@@ -1469,7 +1473,7 @@
+
+ //printf("Recording as keycode:%d\n", e->keycode);
+ active_recording->keycode = e->keycode;
+- return;
++ return HANDLE_CONTINUE;
+ }
+
+ handler_info_t handle_gridnav(XKeyEvent *e) {