diff options
Diffstat (limited to 'src/XChgDCtl.c')
-rw-r--r-- | src/XChgDCtl.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/XChgDCtl.c b/src/XChgDCtl.c index 9e71475..49e3a52 100644 --- a/src/XChgDCtl.c +++ b/src/XChgDCtl.c @@ -153,6 +153,27 @@ XChangeDeviceControl(dpy, dev, control, d) return rep.status; } } + case DEVICE_ENABLE: + { + XDeviceEnableControl *E = (XDeviceEnableControl *) d; + xDeviceEnableCtl e; + + e.control = DEVICE_ENABLE; + e.length = sizeof(e); + e.enable = E->enable; + + req->length += (sizeof(e) + 3) >> 2; + Data (dpy, (char *) &e, sizeof(e)); + + if (!_XReply(dpy, (xReply *) &rep, 0, xTrue)) { + UnlockDisplay(dpy); + SyncHandle(); + return NoSuchExtension; + } + else { + return rep.status; + } + } default: { xDeviceCtl u; |