summaryrefslogtreecommitdiffstats
path: root/doc
AgeCommit message (Expand)AuthorFilesLines
2018-12-20docs: add yaml bookguppy_6.99.3guppy/6.99.36.99.3Frederic Marec1-0/+13
2018-11-28doc: fix invalid image referenceStéphane Desneux1-2/+2
2018-11-15Rename the image file nameKazumasa Mitsunari1-0/+0
2018-10-18Improve ApplicationGuideKazumasa Mitsunari9-521/+666
2018-10-11Drop 2017 suffixKazumasa Mitsunari1-1/+1
2018-03-20Update documentKazumasa Mitsunari1-101/+67
2018-02-09Add APIs which can get information about the display and the surface areaYuta Doi1-1/+58
2017-12-11Revert "Add APIs which can get information of display and area"Tadao Tanikawa1-58/+1
2017-12-11Add APIs which can get information of display and areaYuta Doi1-1/+58
2017-11-10Remove and replace the commentsYuta Doi1-1/+1
2017-11-09Update the application guideYuta Doi1-34/+31
2017-11-06Update application guideYuta Doi1-46/+99
2017-11-01Update the application guideYuta Doi1-138/+325
2017-10-09Add agl-service-windowmanager-2017zheng_wenlong1-0/+497
sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
From 525b5bf65303d661f44c01b11bafd5ba90976850 Mon Sep 17 00:00:00 2001
From: Wataru Mizuno <wmizuno@jp.adit-jv.com>
Date: Wed, 6 Dec 2017 19:35:51 +0900
Subject: [PATCH] ivi-controller: add resize setting suit to surface size

The ivi-controller resizes surface size like desktop usecase.

When window manager swicths the half size window to full size,
resize was not working correctly.
This patch fixs this issue by changing surface source region at
the same timing of destination region is changed.

This patch is not necessary later version of wayland-ivi-extension
2.0 since this resize function has already been implemented by
appropriate manner.

Signed-off-by: Wataru Mizuno <wmizuno@jp.adit-jv.com>
---
 weston-ivi-shell/src/ivi-controller.c | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/weston-ivi-shell/src/ivi-controller.c b/weston-ivi-shell/src/ivi-controller.c
index 312a978..9450cf2 100644
--- a/weston-ivi-shell/src/ivi-controller.c
+++ b/weston-ivi-shell/src/ivi-controller.c
@@ -1334,7 +1334,7 @@ surface_event_configure(struct wl_listener *listener, void *data)
     struct ivisurface *ivisurf = NULL;
     struct ivi_layout_surface *layout_surface =
            (struct ivi_layout_surface *) data;
-    const struct ivi_layout_surface_properties *prop;
+    struct weston_surface *w_surface;
 
     ivisurf = get_surface(&shell->list_surface, layout_surface);
     if (ivisurf == NULL) {
@@ -1342,11 +1342,22 @@ surface_event_configure(struct wl_listener *listener, void *data)
         return;
     }
 
-    prop = lyt->get_properties_of_surface(layout_surface);
+    w_surface = lyt->surface_get_weston_surface(layout_surface);
+    lyt->surface_set_destination_rectangle(layout_surface,
+					   ivisurf->prop->dest_x,
+					   ivisurf->prop->dest_y,
+					   w_surface->width,
+					   w_surface->height);
+    lyt->surface_set_source_rectangle(layout_surface,
+				      0,
+				      0,
+				      w_surface->width,
+				      w_surface->height);
+    lyt->commit_changes();
 
     wl_resource_for_each(resource, &ivisurf->resource_list) {
         send_surface_event(resource, ivisurf,
-                           prop, IVI_NOTIFICATION_CONFIGURE);
+                           ivisurf->prop, IVI_NOTIFICATION_CONFIGURE);
     }
 }
 
-- 
2.7.4