Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 465782 - dev-python/python-xlib: please include bugfix for randr events
Summary: dev-python/python-xlib: please include bugfix for randr events
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-04-13 13:30 UTC by Mario Kicherer
Modified: 2018-04-20 21:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Xlib-ext-randr-outputevent.patch (Xlib-ext-randr-outputevent.patch,692 bytes, patch)
2013-04-13 13:31 UTC, Mario Kicherer
Details | Diff
ebuild patch (python-xlib-0.15_rc1-r2.patch,351 bytes, patch)
2013-04-13 13:32 UTC, Mario Kicherer
Details | Diff
randr-parse-outputinfo.patch (randr-parse-outputinfo.patch,577 bytes, patch)
2013-04-13 15:52 UTC, Mario Kicherer
Details | Diff
python-xlib-0.15_rc1-fix-randr-subevents.patch (xrandr-events.patch,4.39 KB, patch)
2013-05-05 12:27 UTC, Mario Kicherer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mario Kicherer 2013-04-13 13:30:16 UTC
With python-xlib and the randr extension, certain events are not reported to applications as their event code is not correctly registered. Those events actually share a event code and they are differentiated with a sub-code. With my patch, events are correctly reported. I provided the patch also to upstream.

Reproducible: Always
Comment 1 Mario Kicherer 2013-04-13 13:31:00 UTC
Created attachment 345476 [details, diff]
Xlib-ext-randr-outputevent.patch
Comment 2 Mario Kicherer 2013-04-13 13:32:40 UTC
Created attachment 345478 [details, diff]
ebuild patch
Comment 3 Mike Gilbert gentoo-dev 2013-04-13 15:25:29 UTC
Is there a bug/patch tracker where we can keep track of upstream on this issue?
Comment 4 Mario Kicherer 2013-04-13 15:52:17 UTC
Created attachment 345488 [details, diff]
randr-parse-outputinfo.patch

This is another patch that fixes the parsing of responses.

I'm talking with them in their IRC channel.
Comment 5 Mike Gilbert gentoo-dev 2013-04-13 15:54:01 UTC
Ok, just let us know if/when they actually commit the patches.
Comment 6 Mario Kicherer 2013-05-05 12:27:38 UTC
Created attachment 347432 [details, diff]
python-xlib-0.15_rc1-fix-randr-subevents.patch

Okay, the attached patch got accepted upstream a week ago, see http://sourceforge.net/p/python-xlib/code/160/ . The last part of the patch is necessary for the 0.15_rc1 version as the parsing of the response was already patched in trunk. Since then, there were only commits to improve the infrastructure for subevents, afaik.

In case someone's interested, it's required for my daemon that configures X and PA if a new display is plugged in (https://github.com/anyc/anyc-overlay/tree/master/app-misc/mplugd).
Comment 7 Mario Kicherer 2013-05-05 12:30:03 UTC
Ah, got the commit for the last part of my patch: http://sourceforge.net/p/python-xlib/code/146/
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-04-20 21:07:41 UTC
I presume all patches made it to 0.23.