summarylogtreecommitdiffstats
path: root/0002-smartPlacement-w-snap_to_border-we-snap-to-bottom-ri.patch
diff options
context:
space:
mode:
authorOlivier Brunel2017-03-20 16:14:31 +0100
committerOlivier Brunel2017-03-20 16:15:30 +0100
commit69269ef70ad365b39978178046f8406966d8876b (patch)
tree5ca60c0fcdf300d1b74cee2d9c8eaf843afca612 /0002-smartPlacement-w-snap_to_border-we-snap-to-bottom-ri.patch
parentbd25f7caa3df0f073b8c1d42c2a3fe85c99a079d (diff)
downloadaur-69269ef70ad365b39978178046f8406966d8876b.tar.gz
xfwm4-better-smartplacement: upgrade to 4.12.4
Signed-off-by: Olivier Brunel <jjk@jjacky.com>
Diffstat (limited to '0002-smartPlacement-w-snap_to_border-we-snap-to-bottom-ri.patch')
-rw-r--r--0002-smartPlacement-w-snap_to_border-we-snap-to-bottom-ri.patch18
1 files changed, 9 insertions, 9 deletions
diff --git a/0002-smartPlacement-w-snap_to_border-we-snap-to-bottom-ri.patch b/0002-smartPlacement-w-snap_to_border-we-snap-to-bottom-ri.patch
index 8929961a55ef..425077b4f97f 100644
--- a/0002-smartPlacement-w-snap_to_border-we-snap-to-bottom-ri.patch
+++ b/0002-smartPlacement-w-snap_to_border-we-snap-to-bottom-ri.patch
@@ -1,4 +1,4 @@
-From d86b58c2ca82e10394d274bb5797bfa859e90de5 Mon Sep 17 00:00:00 2001
+From c91efb6c180e7b939addb4e65eddb100c48e0945 Mon Sep 17 00:00:00 2001
From: jjacky <i.am.jack.mail@gmail.com>
Date: Fri, 5 Apr 2013 15:22:11 +0200
Subject: [PATCH 2/3] smartPlacement: w/ snap_to_border we snap to bottom/right
@@ -13,10 +13,10 @@ Signed-off-by: Olivier Brunel <jjk@jjacky.com>
1 file changed, 21 insertions(+), 12 deletions(-)
diff --git a/src/placement.c b/src/placement.c
-index a8e9c70..14969ec 100644
+index a6ce2636..41c48824 100644
--- a/src/placement.c
+++ b/src/placement.c
-@@ -711,7 +711,7 @@ smartPlacement (Client * c, int full_x, int full_y, int full_w, int full_h)
+@@ -702,7 +702,7 @@ smartPlacement (Client * c, int full_x, int full_y, int full_w, int full_h)
Client *c2 = list->data;
gint i, n;
gboolean done;
@@ -25,7 +25,7 @@ index a8e9c70..14969ec 100644
gdouble best_surface = 0;
gboolean can_window_fit = FALSE;
-@@ -783,7 +783,7 @@ smartPlacement (Client * c, int full_x, int full_y, int full_w, int full_h)
+@@ -774,7 +774,7 @@ smartPlacement (Client * c, int full_x, int full_y, int full_w, int full_h)
for (i = 0; i < n; ++i)
{
cairo_rectangle_int_t r;
@@ -34,7 +34,7 @@ index a8e9c70..14969ec 100644
gdouble exp_surface;
gboolean exp_can_window_fit;
gdouble surface;
-@@ -794,10 +794,9 @@ smartPlacement (Client * c, int full_x, int full_y, int full_w, int full_h)
+@@ -785,10 +785,9 @@ smartPlacement (Client * c, int full_x, int full_y, int full_w, int full_h)
/* expand horizontally, then vertically */
expand_horizontal (region_hole, &rect, full_x, full_y, full_w, full_h);
expand_vertical (region_hole, &rect, full_x, full_y, full_w, full_h);
@@ -48,7 +48,7 @@ index a8e9c70..14969ec 100644
/* expand vertically, then horizontally */
expand_vertical (region_hole, &rect, full_x, full_y, full_w, full_h);
-@@ -811,9 +810,8 @@ smartPlacement (Client * c, int full_x, int full_y, int full_w, int full_h)
+@@ -802,9 +801,8 @@ smartPlacement (Client * c, int full_x, int full_y, int full_w, int full_h)
|| (exp_can_window_fit && can_fit && surface < exp_surface))
{
exp_can_window_fit = can_fit;
@@ -59,7 +59,7 @@ index a8e9c70..14969ec 100644
}
/* is this the new best result ? (same criteria) */
-@@ -822,15 +820,14 @@ smartPlacement (Client * c, int full_x, int full_y, int full_w, int full_h)
+@@ -813,15 +811,14 @@ smartPlacement (Client * c, int full_x, int full_y, int full_w, int full_h)
|| (can_window_fit && exp_can_window_fit && exp_surface < best_surface))
{
can_window_fit = exp_can_window_fit;
@@ -78,7 +78,7 @@ index a8e9c70..14969ec 100644
/* unless it could fit, make sure it's fully within monitor */
if (!can_window_fit)
-@@ -845,6 +842,18 @@ smartPlacement (Client * c, int full_x, int full_y, int full_w, int full_h)
+@@ -836,6 +833,18 @@ smartPlacement (Client * c, int full_x, int full_y, int full_w, int full_h)
c->y -= n;
}
@@ -98,5 +98,5 @@ index a8e9c70..14969ec 100644
c->x += frame_left;
c->y += frame_top;
--
-2.3.3
+2.12.0