aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/xkb/xkbEvents.c
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-07-03 16:32:11 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-07-03 16:32:11 +0200
commitc86a119da96c73914de91935db1daff04edf3b0b (patch)
tree5a97c8adfeb3d829b6bcdc301106d8d9cfb24b5d /nx-X11/programs/Xserver/xkb/xkbEvents.c
parentb1e4d6e849c54b61fe1c7de0cde58394225d20bf (diff)
parentb82a6a1077c72670f03213fc2513a68d2ce8d3b1 (diff)
downloadnx-libs-c86a119da96c73914de91935db1daff04edf3b0b.tar.gz
nx-libs-c86a119da96c73914de91935db1daff04edf3b0b.tar.bz2
nx-libs-c86a119da96c73914de91935db1daff04edf3b0b.zip
Merge branch 'uli42-gh-sunweaver/pr/xserver-xkb-cleanup' into 3.6.x
Attributes GH PR #706: https://github.com/ArcticaProject/nx-libs/pull/706
Diffstat (limited to 'nx-X11/programs/Xserver/xkb/xkbEvents.c')
-rw-r--r--nx-X11/programs/Xserver/xkb/xkbEvents.c44
1 files changed, 1 insertions, 43 deletions
diff --git a/nx-X11/programs/Xserver/xkb/xkbEvents.c b/nx-X11/programs/Xserver/xkb/xkbEvents.c
index 60c26ff1f..d6408a699 100644
--- a/nx-X11/programs/Xserver/xkb/xkbEvents.c
+++ b/nx-X11/programs/Xserver/xkb/xkbEvents.c
@@ -321,7 +321,7 @@ Time time = 0;
return;
}
-void
+static void
XkbSendIndicatorNotify(DeviceIntPtr kbd,int xkbType,xkbIndicatorNotify *pEv)
{
int initialized;
@@ -961,48 +961,6 @@ XkbInterestPtr interest;
}
int
-XkbRemoveClient(DevicePtr inDev,ClientPtr client)
-{
-XkbSrvInfoPtr xkbi;
-DeviceIntPtr dev = (DeviceIntPtr)inDev;
-XkbInterestPtr interest;
-unsigned long autoCtrls,autoValues;
-Bool found;
-
- found= False;
- autoCtrls= autoValues= 0;
- if ( dev->xkb_interest ) {
- interest = dev->xkb_interest;
- if (interest && (interest->client==client)){
- dev->xkb_interest = interest->next;
- autoCtrls= interest->autoCtrls;
- autoValues= interest->autoCtrlValues;
- _XkbFree(interest);
- found= True;
- }
- while ((!found)&&(interest->next)) {
- if (interest->next->client==client) {
- XkbInterestPtr victim = interest->next;
- interest->next = victim->next;
- autoCtrls= victim->autoCtrls;
- autoValues= victim->autoCtrlValues;
- _XkbFree(victim);
- found= True;
- }
- interest = interest->next;
- }
- }
- if (found && autoCtrls && dev->key && dev->key->xkbInfo ) {
- XkbEventCauseRec cause;
-
- xkbi= dev->key->xkbInfo;
- XkbSetCauseXkbReq(&cause,X_kbPerClientFlags,client);
- XkbEnableDisableControls(xkbi,autoCtrls,autoValues,NULL,&cause);
- }
- return found;
-}
-
-int
XkbRemoveResourceClient(DevicePtr inDev,XID id)
{
XkbSrvInfoPtr xkbi;