Hello community,

here is the log from the commit of package gnome-shell for openSUSE:Factory 
checked in at 2017-09-25 13:51:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gnome-shell (Old)
 and      /work/SRC/openSUSE:Factory/.gnome-shell.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gnome-shell"

Mon Sep 25 13:51:10 2017 rev:137 rq:528345 version:3.26.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/gnome-shell/gnome-shell.changes  2017-09-21 
12:31:29.807537157 +0200
+++ /work/SRC/openSUSE:Factory/.gnome-shell.new/gnome-shell.changes     
2017-09-25 13:51:14.307871715 +0200
@@ -1,0 +2,7 @@
+Tue Sep 19 10:02:41 UTC 2017 - [email protected]
+
+- Add gnome-shell-only-listen-window-created-events-once.patch:
+  gtk-embed: ensure we only listen for window-created events once
+  (bgo#787361).
+
+-------------------------------------------------------------------

New:
----
  gnome-shell-only-listen-window-created-events-once.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gnome-shell.spec ++++++
--- /var/tmp/diff_new_pack.wfL3vY/_old  2017-09-25 13:51:15.435713030 +0200
+++ /var/tmp/diff_new_pack.wfL3vY/_new  2017-09-25 13:51:15.439712468 +0200
@@ -59,6 +59,8 @@
 Patch17:        gnome-shell-dateMenu-fixes.patch
 # PATCH-FIX-UPSTREAM gnome-shell-fix-crash-hint-actor-NULL.patch bgo#787580 
[email protected] -- StEntry: fix crash when hint actor is NULL
 Patch18:        gnome-shell-fix-crash-hint-actor-NULL.patch
+# PATCH-FIX-UPSTREAM gnome-shell-only-listen-window-created-events-once.patch 
bgo#787361 [email protected] -- gtk-embed: ensure we only listen for 
window-created events once
+Patch19:        gnome-shell-only-listen-window-created-events-once.patch
 ## NOTE: Keep SLE Classic patches at bottom.
 # PATCH-FEATURE-SLE gs-sle-classic-ext.patch bnc#862615 [email protected] -- add 
SLE Classic support
 Patch1000:      gs-sle-classic-ext.patch
@@ -201,6 +203,7 @@
 %patch16 -p1
 %patch17 -p1
 %patch18 -p1
+%patch19 -p1
 
 %if !0%{?is_opensuse}
 %patch1000 -p1

++++++ gnome-shell-only-listen-window-created-events-once.patch ++++++
>From 90c55e1977fde252b79bcfd9d0ef41144fb21fe2 Mon Sep 17 00:00:00 2001
From: Ray Strode <[email protected]>
Date: Thu, 14 Sep 2017 14:46:13 -0400
Subject: gtk-embed: ensure we only listen for window-created events once

If a tray icon gets a mapped and unmapped and the mapped again
in quick succession, we can end up with multiple handlers
listening for window creation events.

This commit tries to guard against that by only listening for
window-created events when we don't  know the actor associated
with the icon.

https://bugzilla.gnome.org/show_bug.cgi?id=787361
---
 src/shell-gtk-embed.c | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/src/shell-gtk-embed.c b/src/shell-gtk-embed.c
index 176b413..5406104 100644
--- a/src/shell-gtk-embed.c
+++ b/src/shell-gtk-embed.c
@@ -124,13 +124,14 @@ shell_gtk_embed_on_window_mapped (GtkWidget     *object,
   ShellGtkEmbedPrivate *priv = shell_gtk_embed_get_instance_private (embed);
   MetaDisplay *display = shell_global_get_display (shell_global_get ());
 
-  /* Listen for new windows so we can detect when Mutter has
-     created a MutterWindow for this window */
-  priv->window_created_handler =
-    g_signal_connect (display,
-                      "window-created",
-                      G_CALLBACK (shell_gtk_embed_window_created_cb),
-                      embed);
+  if (priv->window_created_handler == 0 && priv->window_actor == NULL)
+    /* Listen for new windows so we can detect when Mutter has
+       created a MutterWindow for this window */
+    priv->window_created_handler =
+      g_signal_connect (display,
+                        "window-created",
+                        G_CALLBACK (shell_gtk_embed_window_created_cb),
+                        embed);
 }
 
 static void
-- 
cgit v0.12



Reply via email to