summaryrefslogtreecommitdiff
path: root/deskutils/wmpinboard/files/patch-xmisc.c
blob: 4987c8d2a19acd5938a05c0c97f24b7f201c352d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- src/xmisc.c.orig	2009-05-27 17:03:25.000000000 +0400
+++ src/xmisc.c	2009-05-27 16:42:40.000000000 +0400
@@ -204,7 +204,7 @@
     return;
   }
 
-  if (XGetIMValues(xim, XNQueryInputStyle, &xim_styles, 0) || !xim_styles) {
+  if (XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL) || !xim_styles) {
     XCloseIM(xim);
 #ifdef DEBUG_IC
     fprintf(stderr, "Input method doesn't support any style.\n");
@@ -258,7 +258,7 @@
   }
 
   InputContext = XCreateIC(xim, XNInputStyle, input_style,
-    XNClientWindow, win, XNFocusWindow, win, 0);
+    XNClientWindow, win, XNFocusWindow, win, NULL);
 
   if (!InputContext) {
     XCloseIM(xim);