Xrandr 1.2 call in Xrandr < 1.2 code for version 0.2.3

Bug #444666 reported by Duke
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
disper
Fix Released
Medium
wvengen

Bug Description

I only have Xrandr 1.1, but disper 0.2.3 has a call to a function only available in the Xrandr 1.2. The function name is XRRGetScreenResources inside Screen._load_resources. I used the following patch as a work-around:

--- /usr/local/share/disper/src/xrandr/core.py 2009-10-05 15:21:27.000000000 -0700
+++ /tmp/trunk/src/xrandr/core.py 2009-02-13 06:29:02.000000000 -0800
@@ -491,11 +491,11 @@
         self._root = xlib.XDefaultRootWindow(self._display, self._screen)
         self._id = rr.XRRRootToScreen(self._display, self._root)

- self._load_resources()
         self._load_config()
         (self._width, self._height,
          self._width_mm, self._height_mm) = self.get_size()
         if xrandr.get_version() >= (1,2):
+ self._load_resources()
             self._load_screen_size_range()
             self._load_crtcs()
             self._load_outputs()

Revision history for this message
wvengen (wvengen) wrote :

Thanks for your patch, I've added it.
Note to self: the full solution would be to use a new version of the Python X libraries, which include an XRandR module.

Changed in disper:
assignee: nobody → wvengen (wvengen)
importance: Undecided → Medium
milestone: none → 0.2.4
status: New → Fix Committed
wvengen (wvengen)
Changed in disper:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.