Bug 14506 - [MPX]: [Patch] Handle XDeviceChangeCursor when desetting a cursor
Summary: [MPX]: [Patch] Handle XDeviceChangeCursor when desetting a cursor
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: git
Hardware: All All
: low normal
Assignee: Peter Hutterer
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-14 19:27 UTC by Benjamin Close
Modified: 2008-02-17 22:54 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
git Fix for the bug (1.17 KB, patch)
2008-02-14 19:28 UTC, Benjamin Close
no flags Details | Splinter Review

Description Benjamin Close 2008-02-14 19:27:38 UTC
From the patch:

In the case that the device cursor was the first in the list of cursors
the window knew about, unsetting the cursor could lead to a segfault
due to pPrev being NULL. Instead catch the condition and correctly remove
the node from the list. Since there is no cursor now set on the device,
we simply return success as the parent windows cursor will propogate
down later.
Comment 1 Benjamin Close 2008-02-14 19:28:19 UTC
Created attachment 14324 [details] [review]
git Fix for the bug
Comment 2 Peter Hutterer 2008-02-17 22:54:50 UTC
applied (with whitespace changes) and pushed as 660739c6bc84cb74f43a277052ce163fae654417

thanks.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.