[marco] 01/03: debian/patches: Add 0005_fix-resizing-csd-windows.patch. Fix resizing CSD windows. (Closes: #751075).

Mike Gabriel sunweaver at debian.org
Fri Oct 24 23:58:34 UTC 2014


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository marco.

commit 5bece8ef59306ce696af4dee3528a21fa2e69fa5
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Sat Oct 25 01:46:44 2014 +0200

    debian/patches: Add 0005_fix-resizing-csd-windows.patch. Fix resizing CSD windows. (Closes: #751075).
---
 debian/patches/0005_fix-resizing-csd-windows.patch | 61 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 62 insertions(+)

diff --git a/debian/patches/0005_fix-resizing-csd-windows.patch b/debian/patches/0005_fix-resizing-csd-windows.patch
new file mode 100644
index 0000000..1e18049
--- /dev/null
+++ b/debian/patches/0005_fix-resizing-csd-windows.patch
@@ -0,0 +1,61 @@
+From d4969fe7d0f80f3c5989ace682ddb50b4df26715 Mon Sep 17 00:00:00 2001
+From: monsta <monsta at inbox.ru>
+Date: Fri, 24 Oct 2014 15:19:23 +0400
+Subject: [PATCH] Fix the resizing of CSD windows
+
+---
+ src/ui/frames.c | 33 ++++++++++-----------------------
+ 1 file changed, 10 insertions(+), 23 deletions(-)
+
+diff --git a/src/ui/frames.c b/src/ui/frames.c
+index 5c19bd4..2f0f433 100644
+--- a/src/ui/frames.c
++++ b/src/ui/frames.c
+@@ -1630,7 +1630,6 @@ meta_frames_button_press_event (GtkWidget      *widget,
+             control == META_FRAME_CONTROL_RESIZE_W))
+     {
+       MetaGrabOp op;
+-      gboolean titlebar_is_onscreen;
+ 
+       op = META_GRAB_OP_NONE;
+ 
+@@ -1665,28 +1664,16 @@ meta_frames_button_press_event (GtkWidget      *widget,
+           break;
+         }
+ 
+-      meta_core_get (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), frame->xwindow,
+-                     META_CORE_IS_TITLEBAR_ONSCREEN, &titlebar_is_onscreen,
+-                     META_CORE_GET_END);
+-
+-      if (!titlebar_is_onscreen)
+-        meta_core_show_window_menu (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
+-                                    frame->xwindow,
+-                                    event->x_root,
+-                                    event->y_root,
+-                                    event->button,
+-                                    event->time);
+-      else
+-        meta_core_begin_grab_op (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
+-                                 frame->xwindow,
+-                                 op,
+-                                 TRUE,
+-                                 TRUE,
+-                                 event->button,
+-                                 0,
+-                                 event->time,
+-                                 event->x_root,
+-                                 event->y_root);
++      meta_core_begin_grab_op (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
++                               frame->xwindow,
++                               op,
++                               TRUE,
++                               TRUE,
++                               event->button,
++                               0,
++                               event->time,
++                               event->x_root,
++                               event->y_root);
+     }
+   else if (control == META_FRAME_CONTROL_TITLE &&
+            event->button == 1)
+
diff --git a/debian/patches/series b/debian/patches/series
index 35249ac..c72da71 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,4 +2,5 @@
 0002_update-keybindings-files-with-new-name.patch
 0003_no-shadows-to-ARGB-windows.patch
 0004_dont-switch-workspace-when-switching-to-sticky-window.patch
+0005_fix-resizing-csd-windows.patch
 2001_omit-gfdl-licensed-theme-documentation.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/marco.git



More information about the pkg-mate-commits mailing list