Changeset 135
- Timestamp:
- 24.01.2008 03:32:22 (1 year ago)
- Files:
-
- trunk/pycawm/plugins/actionbuttonbox.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/pycawm/plugins/actionbuttonbox.py
r134 r135 23 23 raise ImportError('actionbuttonbox module needs at least Python 2.5!') 24 24 25 from Xlib import X, Xatom,display25 from Xlib import X, display 26 26 27 27 from pycawm.wrappers import DisplayWrapper 28 from pycawm import Client, atomsdb29 28 30 29 class ActionButtonBox(object): … … 75 74 window_geometry.width, 76 75 window_geometry.height) 77 self.window_pixmap.copy_area(self.gc, self.wm.get_root_pixmap(), window_geometry.x, window_geometry.y, window_geometry.width, window_geometry.height, 0, 0) 76 self.window_pixmap.copy_area(self.gc, self.wm.get_root_pixmap(), 77 window_geometry.x, window_geometry.y, 78 window_geometry.width, 79 window_geometry.height, 0, 0) 78 80 for j in xrange(self.row): 79 81 for i in xrange(self.col): … … 103 105 return 104 106 # pointer outside of the menu y coordinates? 105 if y < 0 or y > self.window.get_geometry().height:107 if y < 0 or y > self.window.get_geometry().height: 106 108 return 107 109 if self.buttons[y / 16][x / 16]:
