summaryrefslogtreecommitdiff
path: root/x11/xkbset/patches/patch-ab
blob: 6f93803331a61ac3b2d0a954ce36946272b96605 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-ab,v 1.1 2002/09/25 10:23:45 hubertf Exp $

--- main.c.orig	Thu Aug 17 06:36:15 2000
+++ main.c
@@ -91,6 +91,10 @@
   }
 
   xkb = XkbGetKeyboard(display,XkbControlsMask,XkbUseCoreKbd);
+  if (xkb == 0) {
+    fprintf(stderr, "XKB not supported for display %s\n", getenv("DISPLAY"));
+    exit(1);
+  }
   XkbGetControls(display, XkbAccessXTimeoutMask|XkbAllControlsMask, xkb);
 
   if (query) {