diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-03-02 15:29:24 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-03-02 15:30:11 +0100 |
commit | 6cadf2da966da7ad5f7b613e14b0cb30239f0b82 (patch) | |
tree | bda35326dfcbc4847d78e696e1f33450664971ab /src/x.py | |
parent | add xdisplay (diff) | |
download | xpybar-6cadf2da966da7ad5f7b613e14b0cb30239f0b82.tar.gz xpybar-6cadf2da966da7ad5f7b613e14b0cb30239f0b82.tar.bz2 xpybar-6cadf2da966da7ad5f7b613e14b0cb30239f0b82.tar.xz |
m + fix threading weirdness + add clock example
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/x.py')
-rw-r--r-- | src/x.py | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -112,11 +112,14 @@ def create_panel(width, height, left, ypos, panel_height, at_top): ''' global display, screen ypos = ypos if at_top else (height - ypos - panel_height) - window = screen.root.create_window(left, ypos, width, panel_height, 0, screen.root_depth, - Xlib.X.InputOutput, Xlib.X.CopyFromParent, + window = screen.root.create_window(left, ypos, width, panel_height, 0, + Xlib.X.CopyFromParent, + Xlib.X.InputOutput, + Xlib.X.CopyFromParent, event_mask = ( Xlib.X.StructureNotifyMask | - Xlib.X.ButtonReleaseMask + Xlib.X.ButtonReleaseMask | + Xlib.X.ExposureMask ), colormap = Xlib.X.CopyFromParent) |