From 54993e5c2809406ccd53682c17bb7c6b7b0de829 Mon Sep 17 00:00:00 2001
From: Aleksey Lim <alsroot@member.fsf.org>
Date: Thu, 3 Sep 2009 21:18:27 +0000
Subject: Primary palette redraw glitch after secondary palette exposed #1135
---
src/sugar/graphics/palettewindow.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/sugar/graphics/palettewindow.py b/src/sugar/graphics/palettewindow.py
index 57f1e00..454ac8d 100644
a
|
b
|
class PaletteWindow(gtk.Window): |
320 | 320 | self._popup_anim.start() |
321 | 321 | else: |
322 | 322 | self.show() |
| 323 | # we have to invoke update_position() twice |
| 324 | # since WM could ignore first move() request |
| 325 | self.update_position() |
323 | 326 | |
324 | 327 | def popdown(self, immediate=False): |
325 | 328 | logging.debug('PaletteWindow.popdown immediate %r', immediate) |
… |
… |
class _PopupAnimation(animator.Animation): |
412 | 415 | def next_frame(self, current): |
413 | 416 | if current == 1.0: |
414 | 417 | self._palette.show() |
| 418 | # we have to invoke update_position() twice |
| 419 | # since WM could ignore first move() request |
| 420 | self._palette.update_position() |
415 | 421 | |
416 | 422 | |
417 | 423 | class _PopdownAnimation(animator.Animation): |