r49160 - in /desktop/unstable/gtk+3.0/debian: changelog patches/series patches/wayland-add-extended-state-for-tiled.patch

smcv at users.alioth.debian.org smcv at users.alioth.debian.org
Fri Jun 24 17:23:20 UTC 2016


Author: smcv
Date: Fri Jun 24 17:23:19 2016
New Revision: 49160

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=49160
Log:
Backport patch from upstream to mark tiled Mutter/Shell windows
as GDK_WINDOW_STATE_TILED under Wayland (with mutter >= 3.20.2-2)

Added:
    desktop/unstable/gtk+3.0/debian/patches/wayland-add-extended-state-for-tiled.patch
Modified:
    desktop/unstable/gtk+3.0/debian/changelog
    desktop/unstable/gtk+3.0/debian/patches/series

Modified: desktop/unstable/gtk+3.0/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gtk%2B3.0/debian/changelog?rev=49160&op=diff
==============================================================================
--- desktop/unstable/gtk+3.0/debian/changelog	[utf-8] (original)
+++ desktop/unstable/gtk+3.0/debian/changelog	[utf-8] Fri Jun 24 17:23:19 2016
@@ -7,6 +7,8 @@
   [ Simon McVittie ]
   * d/rules: reset XDG_CONFIG_HOME, XDG_CACHE_HOME, XDG_DATA_HOME so that
     they are based on the temporary HOME
+  * Backport patch from upstream to mark tiled Mutter/Shell windows
+    as GDK_WINDOW_STATE_TILED under Wayland (with mutter >= 3.20.2-2)
 
  -- Laurent Bigonville <bigon at debian.org>  Sun, 05 Jun 2016 02:29:49 +0200
 

Modified: desktop/unstable/gtk+3.0/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gtk%2B3.0/debian/patches/series?rev=49160&op=diff
==============================================================================
--- desktop/unstable/gtk+3.0/debian/patches/series	[utf-8] (original)
+++ desktop/unstable/gtk+3.0/debian/patches/series	[utf-8] Fri Jun 24 17:23:19 2016
@@ -7,3 +7,4 @@
 071_fix-installation-of-HTML-images.patch
 no-accessibility-dump.patch
 reftest-known-fail.patch
+wayland-add-extended-state-for-tiled.patch

Added: desktop/unstable/gtk+3.0/debian/patches/wayland-add-extended-state-for-tiled.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gtk%2B3.0/debian/patches/wayland-add-extended-state-for-tiled.patch?rev=49160&op=file
==============================================================================
--- desktop/unstable/gtk+3.0/debian/patches/wayland-add-extended-state-for-tiled.patch	(added)
+++ desktop/unstable/gtk+3.0/debian/patches/wayland-add-extended-state-for-tiled.patch	[utf-8] Fri Jun 24 17:23:19 2016
@@ -0,0 +1,63 @@
+From 0a5d3f487947146a18d2a311c20806fd463794f4 Mon Sep 17 00:00:00 2001
+From: Olivier Fourdan <ofourdan at redhat.com>
+Date: Wed, 25 May 2016 15:07:51 +0200
+Subject: [PATCH] wayland: add extended state for tiled
+
+xdg-shell allows desktop environments to extend the list of states
+within a given range.
+
+Use this possibility to add a new state for tiled so that gtk+ can
+benefit from this.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=766860
+---
+ gdk/wayland/gdkwindow-wayland.c | 16 ++++++++++++++--
+ 1 file changed, 14 insertions(+), 2 deletions(-)
+
+diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
+index f05de06..cd71c04 100644
+--- a/gdk/wayland/gdkwindow-wayland.c
++++ b/gdk/wayland/gdkwindow-wayland.c
+@@ -45,6 +45,13 @@ enum {
+ 
+ static guint signals[LAST_SIGNAL];
+ 
++/*
++ * Define GNOME additional states to xdg-shell
++ * The current reserved range for GNOME is 0x1000 - 0x1FFF
++ */
++
++#define XDG_SURFACE_STATE_GNOME_TILED 0x1000
++
+ #define WINDOW_IS_TOPLEVEL_OR_FOREIGN(window) \
+   (GDK_WINDOW_TYPE (window) != GDK_WINDOW_CHILD &&   \
+    GDK_WINDOW_TYPE (window) != GDK_WINDOW_OFFSCREEN)
+@@ -1227,6 +1234,10 @@ xdg_surface_configure (void               *data,
+           break;
+         case XDG_SURFACE_STATE_RESIZING:
+           break;
++        /* GNOME additional states to xdg-shell */
++        case XDG_SURFACE_STATE_GNOME_TILED:
++          new_state |= GDK_WINDOW_STATE_TILED;
++          break;
+         default:
+           /* Unknown state */
+           break;
+@@ -1272,11 +1283,12 @@ xdg_surface_configure (void               *data,
+     }
+ 
+   GDK_NOTE (EVENTS,
+-            g_message ("configure, window %p %dx%d,%s%s%s",
++            g_message ("configure, window %p %dx%d,%s%s%s%s",
+                        window, width, height,
+                        (new_state & GDK_WINDOW_STATE_FULLSCREEN) ? " fullscreen" : "",
+                        (new_state & GDK_WINDOW_STATE_MAXIMIZED) ? " maximized" : "",
+-                       (new_state & GDK_WINDOW_STATE_FOCUSED) ? " focused" : ""));
++                       (new_state & GDK_WINDOW_STATE_FOCUSED) ? " focused" : "",
++                       (new_state & GDK_WINDOW_STATE_TILED) ? " tiled" : ""));
+ 
+   _gdk_set_window_state (window, new_state);
+   gdk_wayland_window_sync_margin (window);
+-- 
+2.8.1
+




More information about the pkg-gnome-commits mailing list