mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-22 20:35:43 +00:00
mpx: SelectEvents and GetEventBase requests.
Some renaming and cleaning up in extinit.c MPXLastEvent added Xi: ShouldFreeInputMask() from XI is not static any more, used in mpx dix: GetPointerEvents() allocates MPX event for MPX devices. DeliverDeviceEvents() caters for MPX devices.
This commit is contained in:
parent
afd6af6551
commit
416f1bb99a
17 changed files with 720 additions and 57 deletions
19
include/mpxevents.h
Normal file
19
include/mpxevents.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/* Copyright 2006 by Peter Hutterer <peter@cs.unisa.edu.au> */
|
||||
|
||||
#ifdef HAVE_DIX_CONFIG_H
|
||||
#include <dix-config.h>
|
||||
#endif
|
||||
|
||||
#ifndef MPXEVENTS_H
|
||||
#define MPXEVENTS_H 1
|
||||
|
||||
#include <X11/X.h> /* for inputstr.h */
|
||||
#include <X11/Xproto.h> /* Request macro */
|
||||
#include "inputstr.h" /* DeviceIntPtr */
|
||||
|
||||
extern int MPXSelectForWindow(
|
||||
WindowPtr /* pWin */,
|
||||
ClientPtr /* client */,
|
||||
int /* mask */);
|
||||
|
||||
#endif
|
||||
72
include/mpxextinit.h
Normal file
72
include/mpxextinit.h
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
/* Copyright 2006 by Peter Hutterer <peter@cs.unisa.edu.au> */
|
||||
|
||||
/********************************************************************
|
||||
* Interface of mpx/extinit.c
|
||||
*/
|
||||
|
||||
#ifndef MPXEXTINIT_H
|
||||
#define MPXEXTINIT_H
|
||||
|
||||
#include "extnsionst.h"
|
||||
|
||||
void
|
||||
MPXExtensionInit(
|
||||
void
|
||||
);
|
||||
|
||||
int
|
||||
ProcMPXDispatch (
|
||||
ClientPtr /* client */
|
||||
);
|
||||
|
||||
int
|
||||
SProcMPXDispatch(
|
||||
ClientPtr /* client */
|
||||
);
|
||||
|
||||
void
|
||||
SReplyMPXDispatch (
|
||||
ClientPtr /* client */,
|
||||
int /* len */,
|
||||
mpxGetExtensionVersionReply * /* rep */
|
||||
);
|
||||
|
||||
void
|
||||
SEventMPXDispatch (
|
||||
xEvent * /* from */,
|
||||
xEvent * /* to */
|
||||
);
|
||||
|
||||
void
|
||||
MPXFixExtensionEvents (
|
||||
ExtensionEntry * /* extEntry */
|
||||
);
|
||||
|
||||
void
|
||||
MPXResetProc(
|
||||
ExtensionEntry * /* unused */
|
||||
);
|
||||
|
||||
Mask
|
||||
MPXGetNextExtEventMask (
|
||||
void
|
||||
);
|
||||
|
||||
void
|
||||
MPXSetMaskForExtEvent(
|
||||
Mask /* mask */,
|
||||
int /* event */
|
||||
);
|
||||
|
||||
void
|
||||
MPXAllowPropagateSuppress (
|
||||
Mask /* mask */
|
||||
);
|
||||
|
||||
void
|
||||
MPXRestoreExtensionEvents (
|
||||
void
|
||||
);
|
||||
#endif
|
||||
|
||||
|
||||
Loading…
Reference in a new issue