rpms/mutter/devel mutter-metawindow.patch, NONE, 1.1 mutter.spec, 1.5, 1.6

Peter Robinson pbrobinson at fedoraproject.org
Fri Aug 21 19:50:25 UTC 2009


Author: pbrobinson

Update of /cvs/pkgs/rpms/mutter/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv11571

Modified Files:
	mutter.spec 
Added Files:
	mutter-metawindow.patch 
Log Message:
- Add upstream patch needed by latest mutter-moblin

mutter-metawindow.patch:
 core/window.c    |   16 ++++++++++++++++
 include/window.h |    2 +-
 2 files changed, 17 insertions(+), 1 deletion(-)

--- NEW FILE mutter-metawindow.patch ---
>From f3e6913d579a2409de1eb7933a664f1c2b51380b Mon Sep 17 00:00:00 2001
From: Tomas Frydrych <tf at linux.intel.com>
Date: Thu, 06 Aug 2009 17:11:11 +0000
Subject: Added meta_window_is_modal()

Queries whether the window is in a modal state, as per the _NET_WM_STATE
protocol.
---
diff --git a/src/core/window.c b/src/core/window.c
index 974c650..d77a553 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -8793,3 +8793,19 @@ meta_window_get_client_machine (MetaWindow *window)
   return window->wm_client_machine;
 }
 
+/**
+ * meta_window_is_modal:
+ * @window: a #MetaWindow
+ *
+ * Queries whether the window is in a modal state as described by the
+ * _NET_WM_STATE protocol.
+ *
+ * Return value: (transfer none): TRUE if the window is in modal state.
+ */
+gboolean
+meta_window_is_modal (MetaWindow *window)
+{
+  g_return_val_if_fail (META_IS_WINDOW (window), FALSE);
+
+  return window->wm_state_modal;
+}
diff --git a/src/include/window.h b/src/include/window.h
index f611da8..5295456 100644
--- a/src/include/window.h
+++ b/src/include/window.h
@@ -116,4 +116,5 @@ void        meta_window_delete             (MetaWindow  *window,
                                             guint32      timestamp);
 int         meta_window_get_pid (MetaWindow *window);
 const char *meta_window_get_client_machine (MetaWindow *window);
+gboolean    meta_window_is_modal (MetaWindow *window);
 #endif
--
cgit v0.8.2


Index: mutter.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mutter/devel/mutter.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- mutter.spec	11 Aug 2009 16:28:22 -0000	1.5
+++ mutter.spec	21 Aug 2009 19:50:25 -0000	1.6
@@ -1,12 +1,13 @@
 Name:           mutter
 Version:        2.27.2
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Window and compositing manager based on Clutter
 
 Group:          User Interface/Desktops
 License:        GPLv2+
 URL:            http://git.gnome.org/cgit/mutter
 Source0:        ftp://ftp.gnome.org/pub/gnome/sources/%{name}/2.27/%{name}-%{version}.tar.bz2
+Patch0:		mutter-metawindow.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires: clutter-devel
@@ -68,6 +69,7 @@ utilities for testing Metacity/Mutter th
 
 %prep
 %setup -q
+%patch0 -p1 -b .metawindows
 
 %build
 autoreconf
@@ -155,6 +157,9 @@ gconftool-2 --makefile-install-rule \
 %doc %{_mandir}/man1/mutter-window-demo.1.gz
 
 %changelog
+* Fri Aug 21 2009 Peter Robinson <pbrobinson at gmail.com> 2.27.2-2
+- Add upstream patch needed by latest mutter-moblin
+
 * Tue Aug 11 2009 Peter Robinson <pbrobinson at gmail.com> 2.27.2-1
 - New upstream 2.27.2 release. Drop upstreamed patches.
 




More information about the fedora-extras-commits mailing list