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
|
$NetBSD: patch-ar,v 1.1.8.1 2007/03/05 12:11:42 ghen Exp $
--- src/xitk/xine-toolkit/xitk.c.orig 2005-05-21 00:02:05.000000000 +0200
+++ src/xitk/xine-toolkit/xitk.c
@@ -147,7 +147,7 @@ typedef struct {
struct timeval keypress;
- KeyCode ignore_keys[3];
+ KeyCode ignore_keys[2];
pthread_t *tips_thread;
unsigned long tips_timeout;
@@ -1805,9 +1805,8 @@ void xitk_init(Display *display, XColor
xitk_x_error = 0;
gXitk->x_error_handler = NULL;
gXitk->modalw = None;
- gXitk->ignore_keys[0] = XKeysymToKeycode(display, XK_Scroll_Lock);
- gXitk->ignore_keys[1] = XKeysymToKeycode(display, XK_Num_Lock);
- gXitk->ignore_keys[2] = XKeysymToKeycode(display, XK_Caps_Lock);
+ gXitk->ignore_keys[0] = XKeysymToKeycode(display, XK_Shift_L);
+ gXitk->ignore_keys[1] = XKeysymToKeycode(display, XK_Control_L);
gXitk->tips_timeout = TIPS_TIMEOUT;
XGetInputFocus(display, &(gXitk->parent.window), &(gXitk->parent.focus));
@@ -1877,7 +1876,7 @@ void xitk_init(Display *display, XColor
sprintf(buffer, "%s%s", buffer, " ]-");
if(verbosity)
- printf(buffer);
+ printf("%s", buffer);
gXitk->wm_type = xitk_check_wm(display);
|