Ticket #453: sugar-1138.patch

File sugar-1138.patch, 1017 bytes (added by alsroot, 12 years ago)
  • src/jarabe/model/shell.py

    From c760a0e39f9f816626ff8e62fae82fb4b21542ff Mon Sep 17 00:00:00 2001
    From: Aleksey Lim <alsroot@member.fsf.org>
    Date: Tue, 15 Sep 2009 18:19:13 +0000
    Subject: "Ignoring" WEP/WPA passphrase dialog makes Sugar unresponsive #1138
    
    ---
     src/jarabe/model/shell.py |    6 ++++++
     1 files changed, 6 insertions(+), 0 deletions(-)
    
    diff --git a/src/jarabe/model/shell.py b/src/jarabe/model/shell.py
    index b4c1af6..ef2268d 100644
    a b class ShellModel(gobject.GObject): 
    354354        if old_level == new_level:
    355355            return
    356356
     357        if old_level != self.ZOOM_ACTIVITY:
     358            screen = gtk.gdk.screen_get_default()
     359            active_window_type = screen.get_active_window().get_type_hint()
     360            if active_window_type != gtk.gdk.WINDOW_TYPE_HINT_DESKTOP:
     361                return
     362
    357363        self._zoom_level = new_level
    358364        if new_level is not self.ZOOM_ACTIVITY:
    359365            self._desktop_level = new_level