Summary: | xdmxconfig fails to create a GC and bails | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | torquil | ||||||
Component: | Server/DDX/dmx | Assignee: | dmx-bugs | ||||||
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> | ||||||
Severity: | normal | ||||||||
Priority: | medium | CC: | peter.hutterer | ||||||
Version: | unspecified | ||||||||
Hardware: | Other | ||||||||
OS: | All | ||||||||
Whiteboard: | 2011BRB_Reviewed | ||||||||
i915 platform: | i915 features: | ||||||||
Attachments: |
|
Description
torquil
2011-05-23 07:02:35 UTC
Created attachment 73633 [details] [review] patch to prevent a BadPixmap error being thrown I've attached a patch that hopefully resolves this. It removes GCClipMask from the valuemask. The X server seems to be objecting that 'None' is not a valid pixmap for the clip_mask member of XGCValues, even though the manual says: http://www.tronche.com/gui/x/xlib/GC/manipulating.html "The clip-mask restricts writes to the destination drawable. If the clip-mask is set to a pixmap, it must have depth one and have the same root as the GC, or a BadMatch error results. If clip-mask is set to None, the pixels are always drawn regardless of the clip origin." There seem to be no ill effects to simply removing the clip-mask (i.e. the graphics are still drawn). The manual is ambiguous as to whether the flag should be included if the pixmap is set to None, anyway. This is against the version packaged by Fedora as xorg-x11-server-Xdmx-1.13.1-4.fc18.x86_64, but it seems the code hasn't changed much recently anyway... Created attachment 73666 [details] [review] 0001-dmx-don-t-include-dmx-config.h-from-xdmxconfig-37502.patch Note that while this patch fixes the immediate issue here, there may be more issues hidden. both server and xdmxconfig use libdmxconfig.a which still includes the server headers. This needs full auditing, though I don't think I've got time for that right now. commit 1058fcf57fdcb94d92e7b5f4483b347853d5f8e6 Author: Peter Hutterer <peter.hutterer@who-t.net> Date: Sat Jan 26 14:13:33 2013 +1000 dmx: don't include dmx-config.h from xdmxconfig (#37502) |
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.