Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sugar3/graphics/window.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sugar3/graphics/window.py b/src/sugar3/graphics/window.py
index d754795..6f19ad7 100644
--- a/src/sugar3/graphics/window.py
+++ b/src/sugar3/graphics/window.py
@@ -297,11 +297,18 @@ class Window(Gtk.Window):
def __request_clear_area_cb(self, activity, osk_rect, cursor_rect):
self._clear_area_dy = cursor_rect.y + cursor_rect.height - osk_rect.y
+
+ if self._clear_area_dy < 0:
+ self._clear_area_dy = 0
+ return False
+
self.queue_resize()
+ return True
def __unset_clear_area_cb(self, activity, snap_back):
self._clear_area_dy = 0
self.queue_resize()
+ return True
def __size_allocate_cb(self, widget, allocation):
self.set_allocation(allocation)