r36862 - in /desktop/experimental/mutter/debian: changelog patches/10_Always-send-_NET_WM_FRAME_DRAWN-for-newly-created-wi.patch patches/series

sjoerd at users.alioth.debian.org sjoerd at users.alioth.debian.org
Mon Mar 4 21:35:59 UTC 2013


Author: sjoerd
Date: Mon Mar  4 21:35:58 2013
New Revision: 36862

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=36862
Log:
* d/p/10_Always-send-_NET_WM_FRAME_DRAWN-for-newly-created-wi.patch:
  + Added. Fix a race causing _NET_WM_FRAME_DRAWN to not be sent in context
  menus. (From upstream git, BGO#694771)

Added:
    desktop/experimental/mutter/debian/patches/10_Always-send-_NET_WM_FRAME_DRAWN-for-newly-created-wi.patch
Modified:
    desktop/experimental/mutter/debian/changelog
    desktop/experimental/mutter/debian/patches/series

Modified: desktop/experimental/mutter/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/mutter/debian/changelog?rev=36862&op=diff
==============================================================================
--- desktop/experimental/mutter/debian/changelog [utf-8] (original)
+++ desktop/experimental/mutter/debian/changelog [utf-8] Mon Mar  4 21:35:58 2013
@@ -6,8 +6,11 @@
       * Dropped, Ubuntu specific
   * debian/control.in: Bump b-d on glib
   * debian/control.in: Rename libmutter0a to libmutter0b for more ABI fun
-
- -- Sjoerd Simons <sjoerd at debian.org>  Sat, 23 Feb 2013 19:22:58 +0100
+  * d/p/10_Always-send-_NET_WM_FRAME_DRAWN-for-newly-created-wi.patch:
+    + Added. Fix a race causing _NET_WM_FRAME_DRAWN to not be sent in context
+    menus. (From upstream git, BGO#694771)
+
+ -- Sjoerd Simons <sjoerd at debian.org>  Mon, 04 Mar 2013 22:12:55 +0100
 
 mutter (3.7.5-0ubuntu1~raring1) raring; urgency=medium
 

Added: desktop/experimental/mutter/debian/patches/10_Always-send-_NET_WM_FRAME_DRAWN-for-newly-created-wi.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/mutter/debian/patches/10_Always-send-_NET_WM_FRAME_DRAWN-for-newly-created-wi.patch?rev=36862&op=file
==============================================================================
--- desktop/experimental/mutter/debian/patches/10_Always-send-_NET_WM_FRAME_DRAWN-for-newly-created-wi.patch (added)
+++ desktop/experimental/mutter/debian/patches/10_Always-send-_NET_WM_FRAME_DRAWN-for-newly-created-wi.patch [utf-8] Mon Mar  4 21:35:58 2013
@@ -1,0 +1,62 @@
+From 6e02fb80c4f9de577edaacae6632669e10f26746 Mon Sep 17 00:00:00 2001
+From: "Owen W. Taylor" <otaylor at fishsoup.net>
+Date: Thu, 28 Feb 2013 16:12:50 -0500
+Subject: [PATCH] Always send _NET_WM_FRAME_DRAWN for newly created windows
+
+Send a _NET_WM_FRAME_DRAWN for each newly created window, as required
+by the specification. This avoids a race where a window might be created
+frozen but already unfrozen by the time we first see fetch the
+counter value.
+
+Remove a duplicate call to meta_compositor_set_updates_frozen() which
+was called before the MetaWindowActor is created and hence did nothing.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=694771
+---
+ src/compositor/meta-window-actor.c |    7 ++++++-
+ src/core/window.c                  |    4 ----
+ 2 files changed, 6 insertions(+), 5 deletions(-)
+
+diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
+index fbdb72d..f54b87f 100644
+--- a/src/compositor/meta-window-actor.c
++++ b/src/compositor/meta-window-actor.c
+@@ -1562,6 +1562,12 @@ meta_window_actor_new (MetaWindow *window)
+   meta_window_actor_set_updates_frozen (self,
+                                         meta_window_updates_are_frozen (priv->window));
+ 
++  /* If a window doesn't start off with updates frozen, we should
++   * we should send a _NET_WM_FRAME_DRAWN immediately after the first drawn.
++   */
++  if (priv->window->extended_sync_request_counter && !priv->updates_frozen)
++    meta_window_actor_queue_frame_drawn (self, FALSE);
++
+   meta_window_actor_sync_actor_geometry (self, priv->window->placed);
+ 
+   /* Hang our compositor window state off the MetaWindow for fast retrieval */
+@@ -2408,7 +2414,6 @@ meta_window_actor_post_paint (MetaWindowActor *self)
+ 
+       frame->frame_drawn_time = meta_compositor_monotonic_time_to_server_time (display,
+                                                                                g_get_monotonic_time ());
+-
+       ev.type = ClientMessage;
+       ev.window = meta_window_get_xwindow (priv->window);
+       ev.message_type = display->atom__NET_WM_FRAME_DRAWN;
+diff --git a/src/core/window.c b/src/core/window.c
+index bcc1fa3..caadfb7 100644
+--- a/src/core/window.c
++++ b/src/core/window.c
+@@ -4558,10 +4558,6 @@ meta_window_create_sync_request_alarm (MetaWindow *window)
+ 
+       window->sync_request_serial =
+         XSyncValueLow32 (init) + ((gint64)XSyncValueHigh32 (init) << 32);
+-
+-      /* if the value is odd, the window starts off with updates frozen */
+-      meta_compositor_set_updates_frozen (window->display->compositor, window,
+-                                          meta_window_updates_are_frozen (window));
+     }
+   else
+     {
+-- 
+1.7.10.4
+

Modified: desktop/experimental/mutter/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/mutter/debian/patches/series?rev=36862&op=diff
==============================================================================
--- desktop/experimental/mutter/debian/patches/series [utf-8] (original)
+++ desktop/experimental/mutter/debian/patches/series [utf-8] Mon Mar  4 21:35:58 2013
@@ -1,1 +1,2 @@
 01_Wcast-align.patch
+10_Always-send-_NET_WM_FRAME_DRAWN-for-newly-created-wi.patch




More information about the pkg-gnome-commits mailing list