2 #ifdef HAVE_DIX_CONFIG_H
3 #include <dix-config.h>
6 #ifdef HAVE_XORG_CONFIG_H
7 #include <xorg-config.h>
13 #include "windowstr.h"
14 #define XKBSRV_NEED_FILE_FUNCS
20 XkbDDXPrivate(DeviceIntPtr dev
,KeyCode key
,XkbAction
*act
)
22 XkbAnyAction
*xf86act
= &(act
->any
);
23 char msgbuf
[XkbAnyActionDataSize
+1];
25 if (xf86act
->type
== XkbSA_XFree86Private
) {
26 memcpy(msgbuf
, xf86act
->data
, XkbAnyActionDataSize
);
27 msgbuf
[XkbAnyActionDataSize
]= '\0';
28 if (strcasecmp(msgbuf
, "-vmode")==0)
29 xf86ProcessActionEvent(ACTION_PREV_MODE
, NULL
);
30 else if (strcasecmp(msgbuf
, "+vmode")==0)
31 xf86ProcessActionEvent(ACTION_NEXT_MODE
, NULL
);
32 else if (strcasecmp(msgbuf
, "ungrab")==0)
33 xf86ProcessActionEvent(ACTION_DISABLEGRAB
, NULL
);
34 else if (strcasecmp(msgbuf
, "clsgrb")==0)
35 xf86ProcessActionEvent(ACTION_CLOSECLIENT
, NULL
);
37 xf86ProcessActionEvent(ACTION_MESSAGE
, (void *) msgbuf
);