diff options
author | Roland Mainz <roland.mainz@nrubsig.org> | 2005-03-20 20:45:58 +0000 |
---|---|---|
committer | Roland Mainz <roland.mainz@nrubsig.org> | 2005-03-20 20:45:58 +0000 |
commit | 287b04adcd4d01118902bd27bbb91007aad93a62 (patch) | |
tree | 7e7b339e1ecde562d4789f10fb3d08829b16af3b | |
parent | 1cfa1c94b01303aa9f1c3327e3bbdb53834d0322 (diff) |
//bugs.freedesktop.org/show_bug.cgi?id=2258) attachment #2166sco_port_update-baseXORG-6_8_99_900XORG-6_8_99_9XORG-6_8_99_8XORG-6_8_99_7XORG-6_8_99_6XORG-6_8_99_5XORG-6_8_99_4XORG-6_8_99_3XORG-6_8_99_2XORG-6_8_99_16XORG-6_8_99_15XORG-6_8_99_14XORG-6_8_99_13XORG-6_8_99_12XORG-6_8_99_11XORG-6_8_99_10XORG-6_8_99_1
(https://bugs.freedesktop.org/attachment.cgi?id=2166) "xset q" (query)
should not print an error message ('Xlib: extension "XFree86-Misc"
missing on display ":35.0".') when the "XFree86-Misc" is not available
on the Xserver.
-rw-r--r-- | xset.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1242,6 +1242,7 @@ int scr = DefaultScreen (dpy); XKeyboardState values; int acc_num, acc_denom, threshold; int timeout, interval, prefer_blank, allow_exp; +int dummy; #ifdef XF86MISC XF86MiscKbdSettings kbdinfo; #endif @@ -1275,7 +1276,8 @@ else #endif #endif #ifdef XF86MISC -if (XF86MiscGetKbdSettings(dpy, &kbdinfo)) +if (XF86MiscQueryExtension(dpy, &dummy, &dummy) && + XF86MiscGetKbdSettings(dpy, &kbdinfo)) printf (" auto repeat delay: %d repeat rate: %d\n", kbdinfo.delay, kbdinfo.rate); #endif |