r42147 - in /desktop/unstable/libwnck3/debian: changelog patches/git_support_gtk_frame_extents.patch patches/series

mpitt at users.alioth.debian.org mpitt at users.alioth.debian.org
Tue Aug 5 14:04:43 UTC 2014


Author: mpitt
Date: Tue Aug  5 14:04:43 2014
New Revision: 42147

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=42147
Log:
Add git_support_gtk_frame_extents.patch: Add support for
_GTK_FRAME_EXTENTS. Patch taken from upstream git.

Added:
    desktop/unstable/libwnck3/debian/patches/git_support_gtk_frame_extents.patch
Modified:
    desktop/unstable/libwnck3/debian/changelog
    desktop/unstable/libwnck3/debian/patches/series

Modified: desktop/unstable/libwnck3/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/libwnck3/debian/changelog?rev=42147&op=diff
==============================================================================
--- desktop/unstable/libwnck3/debian/changelog	[utf-8] (original)
+++ desktop/unstable/libwnck3/debian/changelog	[utf-8] Tue Aug  5 14:04:43 2014
@@ -1,3 +1,10 @@
+libwnck3 (3.4.7-3) UNRELEASED; urgency=medium
+
+  * Add git_support_gtk_frame_extents.patch: Add support for
+    _GTK_FRAME_EXTENTS. Patch taken from upstream git.
+
+ -- Martin Pitt <mpitt at debian.org>  Tue, 05 Aug 2014 16:03:55 +0200
+
 libwnck3 (3.4.7-2) unstable; urgency=medium
 
   * Build using dh-autoreconf, for supporting newer architectures.

Added: desktop/unstable/libwnck3/debian/patches/git_support_gtk_frame_extents.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/libwnck3/debian/patches/git_support_gtk_frame_extents.patch?rev=42147&op=file
==============================================================================
--- desktop/unstable/libwnck3/debian/patches/git_support_gtk_frame_extents.patch	(added)
+++ desktop/unstable/libwnck3/debian/patches/git_support_gtk_frame_extents.patch	[utf-8] Tue Aug  5 14:04:43 2014
@@ -0,0 +1,54 @@
+From 063cc9281372815e0bf0a6b2e63f9b07e1769448 Mon Sep 17 00:00:00 2001
+From: Rico Tzschichholz <ricotz at ubuntu.com>
+Date: Thu, 24 Jul 2014 14:52:04 +0200
+Subject: Add support for _GTK_FRAME_EXTENTS
+
+This adds an additional check if _NET_FRAME_EXTENTS is not set and
+therefore uses the existing *_frame variables accordingly.
+
+diff --git a/libwnck/window.c b/libwnck/window.c
+index 29e5bf8..d57544e 100644
+--- a/libwnck/window.c
++++ b/libwnck/window.c
+@@ -2601,7 +2601,9 @@ _wnck_window_process_property_notify (WnckWindow *window,
+       queue_update (window);
+     }
+   else if (xevent->xproperty.atom ==
+-           _wnck_atom_get ("_NET_FRAME_EXTENTS"))
++           _wnck_atom_get ("_NET_FRAME_EXTENTS") ||
++           xevent->xproperty.atom ==
++           _wnck_atom_get ("_GTK_FRAME_EXTENTS"))
+     {
+       window->priv->need_update_frame_extents = TRUE;
+       queue_update (window);
+diff --git a/libwnck/xutils.c b/libwnck/xutils.c
+index 173d3ed..8222b19 100644
+--- a/libwnck/xutils.c
++++ b/libwnck/xutils.c
+@@ -1365,6 +1365,23 @@ _wnck_get_frame_extents (Screen *screen,
+       retval = TRUE;
+     }
+ 
++  if (p_size == NULL)
++    {
++      _wnck_get_cardinal_list (screen, xwindow,
++                               _wnck_atom_get ("_GTK_FRAME_EXTENTS"),
++                               &p_size, &n_size);
++
++      if (p_size != NULL && n_size == 4)
++        {
++          *left_frame   = -p_size[0];
++          *right_frame  = -p_size[1];
++          *top_frame    = -p_size[2];
++          *bottom_frame = -p_size[3];
++
++          retval = TRUE;
++        }
++    }
++
+   if (p_size != NULL)
+     g_free (p_size);
+ 
+-- 
+cgit v0.10.1
+

Modified: desktop/unstable/libwnck3/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/libwnck3/debian/patches/series?rev=42147&op=diff
==============================================================================
--- desktop/unstable/libwnck3/debian/patches/series	[utf-8] (original)
+++ desktop/unstable/libwnck3/debian/patches/series	[utf-8] Tue Aug  5 14:04:43 2014
@@ -1,3 +1,4 @@
 git_window_action_menu_dispose_events.patch
+git_support_gtk_frame_extents.patch
 02_moveresize_static_gravity.patch
 99_ltmain_as-needed.patch




More information about the pkg-gnome-commits mailing list