Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 171396 | Differences between
and this patch

Collapse All | Expand All

(-)xorg-server-1.2.0.orig/xfixes/cursor.c (-1 / +2 lines)
Lines 136-156 Link Here
136
	ret = (*pScreen->DisplayCursor) (pScreen, pCursor);
136
	ret = (*pScreen->DisplayCursor) (pScreen, pCursor);
137
    }
137
    }
138
138
139
    if (pCursor != CursorCurrent)
139
    if (pCursor != CursorCurrent)
140
    {
140
    {
141
	CursorEventPtr	e;
141
	CursorEventPtr	e;
142
142
143
	CursorCurrent = pCursor;
143
	CursorCurrent = pCursor;
144
	for (e = cursorEvents; e; e = e->next)
144
	for (e = cursorEvents; e; e = e->next)
145
	{
145
	{
146
	    if (e->eventMask & XFixesDisplayCursorNotifyMask)
146
	    if ((e->eventMask & XFixesDisplayCursorNotifyMask) &&
147
		!e->pClient->clientGone)
147
	    {
148
	    {
148
		xXFixesCursorNotifyEvent	ev;
149
		xXFixesCursorNotifyEvent	ev;
149
		ev.type = XFixesEventBase + XFixesCursorNotify;
150
		ev.type = XFixesEventBase + XFixesCursorNotify;
150
		ev.subtype = XFixesDisplayCursorNotify;
151
		ev.subtype = XFixesDisplayCursorNotify;
151
		ev.sequenceNumber = e->pClient->sequence;
152
		ev.sequenceNumber = e->pClient->sequence;
152
		ev.window = e->pWindow->drawable.id;
153
		ev.window = e->pWindow->drawable.id;
153
		ev.cursorSerial = pCursor->serialNumber;
154
		ev.cursorSerial = pCursor->serialNumber;
154
		ev.timestamp = currentTime.milliseconds;
155
		ev.timestamp = currentTime.milliseconds;
155
		ev.name = pCursor->name;
156
		ev.name = pCursor->name;
156
		WriteEventsToClient (e->pClient, 1, (xEvent *) &ev);
157
		WriteEventsToClient (e->pClient, 1, (xEvent *) &ev);
(-)xorg-server-1.2.0.orig/xfixes/select.c (-1 / +3 lines)
Lines 71-91 Link Here
71
	break;
71
	break;
72
    case SelectionClientClose:
72
    case SelectionClientClose:
73
	subtype = XFixesSelectionClientCloseNotify;
73
	subtype = XFixesSelectionClientCloseNotify;
74
	eventMask = XFixesSelectionClientCloseNotifyMask;
74
	eventMask = XFixesSelectionClientCloseNotifyMask;
75
	break;
75
	break;
76
    default:
76
    default:
77
	return;
77
	return;
78
    }
78
    }
79
    for (e = selectionEvents; e; e = e->next)
79
    for (e = selectionEvents; e; e = e->next)
80
    {
80
    {
81
	if (e->selection == selection->selection && (e->eventMask & eventMask))
81
	if (e->selection == selection->selection && 
82
	    (e->eventMask & eventMask) &&
83
	    !e->pClient->clientGone)
82
	{
84
	{
83
	    xXFixesSelectionNotifyEvent	ev;
85
	    xXFixesSelectionNotifyEvent	ev;
84
86
85
	    ev.type = XFixesEventBase + XFixesSelectionNotify;
87
	    ev.type = XFixesEventBase + XFixesSelectionNotify;
86
	    ev.subtype = subtype;
88
	    ev.subtype = subtype;
87
	    ev.sequenceNumber = e->pClient->sequence;
89
	    ev.sequenceNumber = e->pClient->sequence;
88
	    ev.window = e->pWindow->drawable.id;
90
	    ev.window = e->pWindow->drawable.id;
89
	    if (subtype == XFixesSetSelectionOwnerNotify)
91
	    if (subtype == XFixesSetSelectionOwnerNotify)
90
		ev.owner = selection->window;
92
		ev.owner = selection->window;
91
	    else
93
	    else

Return to bug 171396