diff options
-rw-r--r-- | src/caribou/window.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/caribou/window.py b/src/caribou/window.py index 1c01575..20caad3 100644 --- a/src/caribou/window.py +++ b/src/caribou/window.py @@ -129,10 +129,13 @@ class CaribouWindow(gtk.Window): self.allocation.width, self.allocation.height)) - if CaribouWindowPlacement.SCREEN != self._default_placement.x.stickto or \ - CaribouWindowPlacement.SCREEN != self._default_placement.y.stickto: + if CaribouWindowPlacement.SCREEN != \ + self._default_placement.x.stickto or \ + CaribouWindowPlacement.SCREEN != \ + self._default_placement.y.stickto: if self._entry_location != gtk.gdk.Rectangle(0, 0, 0, 0): - distance2 = self._get_distance_to_bbox(x, y, self._entry_location) + distance2 = self._get_distance_to_bbox(x, y, + self._entry_location) distance = min(distance, distance2) opacity = (self.max_alpha - self.min_alpha) * \ |