off-by-one

This commit is contained in:
Dana Jansens 2003-02-02 23:57:49 +00:00
parent 4d4e17d102
commit 96a949ec1f

View file

@ -100,9 +100,9 @@ def _do_move():
# use the area based on the struts # use the area based on the struts
area = ob.openbox.screen(_screen).area() area = ob.openbox.screen(_screen).area()
l = area.left() l = area.left()
r = area.right() - w r = area.right() - w + 1
t = area.top() t = area.top()
b = area.bottom() - h b = area.bottom() - h + 1
# left screen edge # left screen edge
if x < l and x >= l - edge_resistance: if x < l and x >= l - edge_resistance:
x = l x = l