AttributeError: '_XRRCrtcInfo' object has no attribute 'mode_info'

Bug #771473 reported by Walther on 2011-04-26
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
disper
Medium
wvengen

Bug Description

Hey, since it's been a long time since you've released a new version, and the current one (2.3.0) has known bugs with xrandr solved in trunk, I decided to get the current trunk version (revision 92, I think, disper --version says 0.2.3.99).

Anyway, it works pretty well, but I found an easy to fix bug when you execute "disper -S":

  File "[...]/scripts/disper/src/xrandr/core.py", line 445, in supports_output
    if self._info.contents.mode_info != output._mode: return False
AttributeError: '_XRRCrtcInfo' object has no attribute 'mode_info'

That line, 445, should be:

            if self._info.contents.mode != output._mode: return False

Because "contents" doesn't contains a "mode_info" parameter, but it has a "mode" one :)

wvengen (wvengen) wrote :

Thanks! It's indeed time to have a new release, though I'll have to finish the new hook/plugin stuff first. But this patch has been committed.

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

Other bug subscribers