diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-09-03 21:18:27 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-09-04 17:02:46 (GMT) |
commit | 2b78463830451b3300dd8005a19789d2a4ab3000 (patch) | |
tree | 62294f4ffa69982955cf0d6498a60b552220f1d4 | |
parent | 135b2a608d3384a5a8e8a5dad700ee72a6c1808a (diff) |
Primary palette redraw glitch after secondary palette exposed #1135
-rw-r--r-- | 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/src/sugar/graphics/palettewindow.py +++ b/src/sugar/graphics/palettewindow.py @@ -320,6 +320,9 @@ class PaletteWindow(gtk.Window): self._popup_anim.start() else: self.show() + # we have to invoke update_position() twice + # since WM could ignore first move() request + self.update_position() def popdown(self, immediate=False): logging.debug('PaletteWindow.popdown immediate %r', immediate) @@ -412,6 +415,9 @@ class _PopupAnimation(animator.Animation): def next_frame(self, current): if current == 1.0: self._palette.show() + # we have to invoke update_position() twice + # since WM could ignore first move() request + self._palette.update_position() class _PopdownAnimation(animator.Animation): |