Skip to content

Commit

Permalink
icon-sender: prefer xcffib module over xpyb
Browse files Browse the repository at this point in the history
xpyb in Fedora 26 (and probably others) have problems with parsing X
events, like this:

    Traceback (most recent call last):
      File "/usr/lib/qubes/icon-sender", line 155, in <module>
        retriever.watch_and_send_icons()
      File "/usr/lib/qubes/icon-sender", line 136, in watch_and_send_icons
        [xproto.EventMask.SubstructureNotify])
      File "/usr/lib64/python2.7/site-packages/xcb/xproto.py", line 1400, in ChangeWindowAttributesChecked
        for elt in xcb.Iterator(value_list, 15, 'value_list', False):
    xcb.Exception: Too few items in 'value_list' list (expect 15).

QubesOS/qubes-issues#1495
  • Loading branch information
marmarek committed Dec 28, 2017
1 parent 4cf2d11 commit dd959a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions window-icon-updater/icon-sender
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
# Usage: qrexec-client-vm dom0 qubes.WindowIconUpdater ./icon-sender

try:
import xcb
from xcb import xproto
except ImportError:
import xcffib as xcb
from xcffib import xproto
except ImportError:
import xcb
from xcb import xproto

import sys
import struct
Expand Down

0 comments on commit dd959a0

Please sign in to comment.