aboutsummaryrefslogtreecommitdiffstats
path: root/src/x.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-03-02 15:29:24 +0100
committerMattias Andrée <maandree@operamail.com>2014-03-02 15:30:11 +0100
commit6cadf2da966da7ad5f7b613e14b0cb30239f0b82 (patch)
treebda35326dfcbc4847d78e696e1f33450664971ab /src/x.py
parentadd xdisplay (diff)
downloadxpybar-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.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/x.py b/src/x.py
index d1b3995..8b18e61 100644
--- a/src/x.py
+++ b/src/x.py
@@ -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)