[polari] ChatView: update toplevel state when parent is set
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] ChatView: update toplevel state when parent is set
- Date: Mon, 30 Mar 2015 00:21:39 +0000 (UTC)
commit 136ae28b4471fab214c04efdd579e6016dd2b59b
Author: Giovanni Campagna <scampa giovanni gmail com>
Date: Thu Mar 19 23:08:19 2015 -0700
ChatView: update toplevel state when parent is set
state-flags-changed will be emitted only when the state flags
actually change, and therefore may not fire if the widget is
mapped to a window that is already focused.
In that case our tracking will get confused and think that
the window is not focused, resulting in messages that are
not properly acked.
https://bugzilla.gnome.org/show_bug.cgi?id=746508
src/chatView.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/chatView.js b/src/chatView.js
index 1cfa9c4..7fa714b 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -235,6 +235,8 @@ const ChatView = new Lang.Class({
Lang.bind(this, this._updateIndent));
this.widget.connect('map', Lang.bind(this, this._updateActive));
this.widget.connect('unmap', Lang.bind(this, this._updateActive));
+ this.widget.connect('parent-set',
+ Lang.bind(this, this._updateToplevel));
this.widget.connect('state-flags-changed',
Lang.bind(this, this._updateToplevel));
this.widget.connect('scroll-event', Lang.bind(this ,this._onScroll));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]