From 2b852ffe2b48dc3b9f71754de7ad48badf22a836 Mon Sep 17 00:00:00 2001 From: Sean Vig Date: Sat, 2 Aug 2014 14:20:51 -0500 Subject: [PATCH] Use new cairocffi/xcb support --- .travis.yml | 2 +- libqtile/drawer.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2379976135..a8dc7e5422 100644 --- a/.travis.yml +++ b/.travis.yml @@ -79,7 +79,7 @@ install: # Installl git xcffib - pip install xcffib # Install cairocffi w/xcffib support - - git clone -b xcffib https://github.com/tych0/cairocffi.git + - git clone -b xcb https://github.com/flacjacket/cairocffi.git - pushd cairocffi - pip install . - popd diff --git a/libqtile/drawer.py b/libqtile/drawer.py index f42afdade6..dad283795f 100644 --- a/libqtile/drawer.py +++ b/libqtile/drawer.py @@ -1,6 +1,7 @@ import collections import math import cairocffi +import cairocffi.xcb import xcffib.xproto from . import pangocffi @@ -185,7 +186,7 @@ def __init__(self, qtile, wid, width, height): self.qtile.conn.default_screen.white_pixel ] ) - self.surface = cairocffi.XCBSurface( + self.surface = cairocffi.xcb.XCBSurface( qtile.conn.conn, self.pixmap, self.find_root_visual(),