freebsd-ports/x11-wm/plwm/files/patch-plwm_outline.py
Dmitry Marakasov 79957c75ea - Clarify LICENSE
- Add LICENSE_FILE
- Switch to options helpers
- Regenerate patches with `make makepatch`
2015-11-14 03:55:57 +00:00

43 lines
1.3 KiB
Python

--- plwm/outline.py.orig 2001-11-26 13:48:21 UTC
+++ plwm/outline.py
@@ -63,7 +63,7 @@ class XorOutlineClient:
if name:
self.outline_gc.set_clip_rectangles(0, 0, [coords], X.YXSorted)
- sx, sy, sw, sh, as = namepos
+ sx, sy, sw, sh, _as = namepos
self.screen.root.draw_text(self.outline_gc, sx, sy, name)
self.outline_name = (sx, sy, name)
else:
@@ -138,8 +138,8 @@ class WindowOutlineClient:
height = s[3] - s[1] + 1)
if name:
- sx, sy, sw, sh, as = namepos
- self.outline_name_window.configure(x = sx, y = sy - as,
+ sx, sy, sw, sh, _as = namepos
+ self.outline_name_window.configure(x = sx, y = sy - _as,
width = sw, height = sh)
if not self.outline_mapped:
@@ -155,7 +155,7 @@ class WindowOutlineClient:
# disappear otherwise...
if name:
self.outline_name_window.image_text(self.outline_name_gc,
- 0, as, name)
+ 0, _as, name)
def outline_hide(self):
if self.outline_mapped:
@@ -246,8 +246,8 @@ def calculate_parts(client, x, y, w, h,
sw = min(r.overall_width, w)
sh = min(r.overall_ascent + r.overall_descent, h)
- as = r.overall_ascent
+ _as = r.overall_ascent
else:
- sx = sy = sw = sh = as = 0
+ sx = sy = sw = sh = _as = 0
- return (x, y, w, h), s, (sx, sy, sw, sh, as)
+ return (x, y, w, h), s, (sx, sy, sw, sh, _as)