[kupfer] ui: Delay text mode change to postpone window resize at activate
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] ui: Delay text mode change to postpone window resize at activate
- Date: Sun, 24 Jan 2010 13:53:18 +0000 (UTC)
commit 9618c57a565bb448e252e0170123b33e77c28678
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Sun Jan 24 03:10:00 2010 +0100
ui: Delay text mode change to postpone window resize at activate
We attack the problem of spontaneous blanking (only when kupfer's
window resizes) by putting the reset/end text mode after activate in
the Interface in an idle callback. It seems that this way we do not
blank(!).
Activating directly from text mode always caused window blanking with
a compositing window manager.
kupfer/ui/browser.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/ui/browser.py b/kupfer/ui/browser.py
index 2c8a13f..bf6ebb5 100644
--- a/kupfer/ui/browser.py
+++ b/kupfer/ui/browser.py
@@ -1150,7 +1150,7 @@ class Interface (gobject.GObject):
"""
val = bool(val) and self.get_can_enter_text_mode()
self._is_text_mode = val
- self.update_text_mode()
+ gobject.idle_add(self.update_text_mode)
self.reset()
return val
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]