Ticket #1135: sugar-1135.patch

File sugar-1135.patch, 1.3 KB (added by alsroot, 15 years ago)
  • src/sugar/graphics/palettewindow.py

    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): 
    320320            self._popup_anim.start()
    321321        else:
    322322            self.show()
     323            # we have to invoke update_position() twice
     324            # since WM could ignore first move() request
     325            self.update_position()
    323326
    324327    def popdown(self, immediate=False):
    325328        logging.debug('PaletteWindow.popdown immediate %r', immediate)
    class _PopupAnimation(animator.Animation): 
    412415    def next_frame(self, current):
    413416        if current == 1.0:
    414417            self._palette.show()
     418            # we have to invoke update_position() twice
     419            # since WM could ignore first move() request
     420            self._palette.update_position()
    415421
    416422
    417423class _PopdownAnimation(animator.Animation):