mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-30 21:53:25 +00:00
Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/xserver into input-api
Conflicts: dix/getevents.c hw/xfree86/common/xf86Xinput.h Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
commit
88cb61e1e5
122 changed files with 845 additions and 2522 deletions
|
|
@ -926,20 +926,12 @@ GetKeyboardEvents(EventList *events, DeviceIntPtr pDev, int type, int key_code)
|
|||
|
||||
|
||||
/**
|
||||
* Returns a set of keyboard events for KeyPress/KeyRelease, optionally
|
||||
* also with valuator events. Handles Xi and XKB.
|
||||
*
|
||||
* DOES NOT GENERATE CORE EVENTS! Core events are created when processing the
|
||||
* event (ProcessOtherEvent).
|
||||
* Returns a set of InternalEvents for KeyPress/KeyRelease, optionally
|
||||
* also with valuator events.
|
||||
*
|
||||
* events is not NULL-terminated; the return value is the number of events.
|
||||
* The DDX is responsible for allocating the event structure in the first
|
||||
* place via GetMaximumEventsNum(), and for freeing it.
|
||||
*
|
||||
* This function does not change the core keymap to that of the device;
|
||||
* that is done by SwitchCoreKeyboard, which is called from
|
||||
* mieqProcessInputEvents. If replacing that function, take care to call
|
||||
* SetCoreKeyboard before processInputProc, so keymaps are altered to suit.
|
||||
*/
|
||||
int
|
||||
GetKeyboardValuatorEvents(EventList *events, DeviceIntPtr pDev, int type,
|
||||
|
|
@ -1076,11 +1068,8 @@ transformAbsolute(DeviceIntPtr dev, ValuatorMask *mask)
|
|||
}
|
||||
|
||||
/**
|
||||
* Generate a series of xEvents (filled into the EventList) representing
|
||||
* pointer motion, or button presses. Xi and XKB-aware.
|
||||
*
|
||||
* DOES NOT GENERATE CORE EVENTS! Core events are created when processing the
|
||||
* event (ProcessOtherEvent).
|
||||
* Generate a series of InternalEvents (filled into the EventList)
|
||||
* representing pointer motion, or button presses.
|
||||
*
|
||||
* events is not NULL-terminated; the return value is the number of events.
|
||||
* The DDX is responsible for allocating the event structure in the first
|
||||
|
|
@ -1223,7 +1212,8 @@ GetPointerEvents(EventList *events, DeviceIntPtr pDev, int type, int buttons,
|
|||
|
||||
|
||||
/**
|
||||
* Post ProximityIn/ProximityOut events, accompanied by valuators.
|
||||
* Generate ProximityIn/ProximityOut InternalEvents, accompanied by
|
||||
* valuators.
|
||||
*
|
||||
* events is not NULL-terminated; the return value is the number of events.
|
||||
* The DDX is responsible for allocating the event structure in the first
|
||||
|
|
|
|||
|
|
@ -117,11 +117,8 @@ CreateGrab(
|
|||
static void
|
||||
FreeGrab(GrabPtr pGrab)
|
||||
{
|
||||
if (pGrab->modifiersDetail.pMask != NULL)
|
||||
free(pGrab->modifiersDetail.pMask);
|
||||
|
||||
if (pGrab->detail.pMask != NULL)
|
||||
free(pGrab->detail.pMask);
|
||||
free(pGrab->modifiersDetail.pMask);
|
||||
free(pGrab->detail.pMask);
|
||||
|
||||
if (pGrab->cursor)
|
||||
FreeCursor(pGrab->cursor, (Cursor)0);
|
||||
|
|
|
|||
|
|
@ -952,11 +952,9 @@ SetAccelerationProfile(
|
|||
if(profile == NULL && profile_num != PROFILE_UNINITIALIZE)
|
||||
return FALSE;
|
||||
|
||||
if(vel->profile_private != NULL){
|
||||
/* Here one could free old profile-private data */
|
||||
free(vel->profile_private);
|
||||
vel->profile_private = NULL;
|
||||
}
|
||||
/* Here one could free old profile-private data */
|
||||
free(vel->profile_private);
|
||||
vel->profile_private = NULL;
|
||||
/* Here one could init profile-private data */
|
||||
vel->Profile = profile;
|
||||
vel->statistics.profile_number = profile_num;
|
||||
|
|
|
|||
|
|
@ -3660,9 +3660,9 @@ WindowParentHasDeviceCursor(WindowPtr pWin,
|
|||
&pParentNode, &pParentPrev))
|
||||
{
|
||||
/* if there is a node in the list, the win has a dev cursor */
|
||||
if (!pParentNode->cursor) /* inherited. loop needs to cont. */
|
||||
{
|
||||
} else if (pParentNode->cursor == pCursor) /* inherit */
|
||||
if (!pParentNode->cursor) /* inherited. */
|
||||
pParent = pParent->parent;
|
||||
else if (pParentNode->cursor == pCursor) /* inherit */
|
||||
return TRUE;
|
||||
else /* different cursor */
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue