<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/weston.git, branch 1.5</title>
<subtitle>gitlab.freedesktop.org: wayland/weston.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/weston.git/'/>
<entry>
<title>desktop-shell: don't assume there's a pointer when mapping a popup</title>
<updated>2014-08-07T13:24:36+00:00</updated>
<author>
<name>Jonny Lamb</name>
<email>jonny.lamb@collabora.co.uk</email>
</author>
<published>2014-08-06T09:50:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/weston.git/commit/?id=d258e0c3f4d57222e2b5d3acb6492836e0a1dc47'/>
<id>d258e0c3f4d57222e2b5d3acb6492836e0a1dc47</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>animation: also change stop value when updating a fade target</title>
<updated>2014-07-30T18:10:34+00:00</updated>
<author>
<name>Jonny Lamb</name>
<email>jonny.lamb@collabora.co.uk</email>
</author>
<published>2014-07-29T23:56:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/weston.git/commit/?id=494b14b64a230e4319bdcad64e494b381e6400a9'/>
<id>494b14b64a230e4319bdcad64e494b381e6400a9</id>
<content type='text'>
If we're fading a view with weston_fade_run() and half way through we
want to unfade it we can use weston_fade_update() to set a new alpha
target. When the animation finishes, reset_alpha() is called which
ensures the alpha value of the view is exactly as requested.

Although weston_fade_update() was updating the spring target so the
animation would look fine, it would then reset to the alpha target
given in the first call to weston_fade_run().
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If we're fading a view with weston_fade_run() and half way through we
want to unfade it we can use weston_fade_update() to set a new alpha
target. When the animation finishes, reset_alpha() is called which
ensures the alpha value of the view is exactly as requested.

Although weston_fade_update() was updating the spring target so the
animation would look fine, it would then reset to the alpha target
given in the first call to weston_fade_run().
</pre>
</div>
</content>
</entry>
<entry>
<title>cairo-util: Set geometry_dirty in frame_set_title</title>
<updated>2014-07-05T08:07:10+00:00</updated>
<author>
<name>Boyan Ding</name>
<email>stu_dby@126.com</email>
</author>
<published>2014-07-04T07:19:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/weston.git/commit/?id=6fa1227434d48a2d75aa656a2d40fe7df3f14219'/>
<id>6fa1227434d48a2d75aa656a2d40fe7df3f14219</id>
<content type='text'>
Title can decide the geometry of a frame because it may affect the
existence of titlebar, so setting geometry_dirty in frame_set_title for
potential change.

Signed-off-by: Boyan Ding &lt;stu_dby@126.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Title can decide the geometry of a frame because it may affect the
existence of titlebar, so setting geometry_dirty in frame_set_title for
potential change.

Signed-off-by: Boyan Ding &lt;stu_dby@126.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cairo-util: Fix geometry for frames with buttons but without title</title>
<updated>2014-07-05T08:06:57+00:00</updated>
<author>
<name>Boyan Ding</name>
<email>stu_dby@126.com</email>
</author>
<published>2014-07-04T07:19:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/weston.git/commit/?id=47f057f4a38fa1ef0bf199c78496683ba01990cb'/>
<id>47f057f4a38fa1ef0bf199c78496683ba01990cb</id>
<content type='text'>
There exist frames which have buttons without title such as a simple
X application piped through xwayland which doesn't specify a title.
We draw the title bar with buttons, but hide it under the window
because geometry thinks a window needs titlebar only if it has title.

This patch change the condition, making it titlebar is needed if a
frame has title or has button(s), which makes more sense.

Signed-off-by: Boyan Ding &lt;stu_dby@126.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There exist frames which have buttons without title such as a simple
X application piped through xwayland which doesn't specify a title.
We draw the title bar with buttons, but hide it under the window
because geometry thinks a window needs titlebar only if it has title.

This patch change the condition, making it titlebar is needed if a
frame has title or has button(s), which makes more sense.

Signed-off-by: Boyan Ding &lt;stu_dby@126.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>desktop-shell: Don't assume there is a pointer when resizing</title>
<updated>2014-06-25T13:33:03+00:00</updated>
<author>
<name>Emilio Pozuelo Monfort</name>
<email>emilio.pozuelo@collabora.co.uk</email>
</author>
<published>2014-06-18T15:48:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/weston.git/commit/?id=065c9cee6d5d1a6f512ddca705931b3522617edd'/>
<id>065c9cee6d5d1a6f512ddca705931b3522617edd</id>
<content type='text'>
Fixes a crash on touch devices without a pointer, when touching
the window frame of a client.

Signed-off-by: Emilio Pozuelo Monfort &lt;emilio.pozuelo@collabora.co.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes a crash on touch devices without a pointer, when touching
the window frame of a client.

Signed-off-by: Emilio Pozuelo Monfort &lt;emilio.pozuelo@collabora.co.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>compositor: update the surface size when there is a size change without a buffer attach</title>
<updated>2014-06-25T13:32:46+00:00</updated>
<author>
<name>George Kiagiadakis</name>
<email>george.kiagiadakis@collabora.com</email>
</author>
<published>2014-06-13T16:14:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/weston.git/commit/?id=8efe8e265520bf0c0b2d4413b7d11bbfc4e4f892'/>
<id>8efe8e265520bf0c0b2d4413b7d11bbfc4e4f892</id>
<content type='text'>
This fixes at least the case where you want to do wl_viewport.set_destination
to resize the surface but without attaching new content in it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes at least the case where you want to do wl_viewport.set_destination
to resize the surface but without attaching new content in it.
</pre>
</div>
</content>
</entry>
<entry>
<title>compositor-wayland: Fix compiler warning</title>
<updated>2014-06-25T13:31:31+00:00</updated>
<author>
<name>Thierry Reding</name>
<email>treding@nvidia.com</email>
</author>
<published>2014-05-27T07:08:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/weston.git/commit/?id=e03a1cc4bc0c6c0d3c43b45445c5831c4f32e93f'/>
<id>e03a1cc4bc0c6c0d3c43b45445c5831c4f32e93f</id>
<content type='text'>
sizeof returns size_t, for which the correct printf specifier is %zu.
Fixes the following warning when building for ARMv7.

	src/compositor-wayland.c: In function 'wayland_output_get_shm_buffer':
	src/compositor-wayland.c:260:3: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'unsigned int' [-Wformat=]
	   weston_log("could not zalloc %ld memory for sb: %m\n", sizeof *sb);
	   ^

Signed-off-by: Thierry Reding &lt;treding@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
sizeof returns size_t, for which the correct printf specifier is %zu.
Fixes the following warning when building for ARMv7.

	src/compositor-wayland.c: In function 'wayland_output_get_shm_buffer':
	src/compositor-wayland.c:260:3: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'unsigned int' [-Wformat=]
	   weston_log("could not zalloc %ld memory for sb: %m\n", sizeof *sb);
	   ^

Signed-off-by: Thierry Reding &lt;treding@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>animation: ensure repaints are always scheduled during animations</title>
<updated>2014-06-25T13:30:42+00:00</updated>
<author>
<name>Jonny Lamb</name>
<email>jonny.lamb@collabora.co.uk</email>
</author>
<published>2014-05-22T20:41:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/weston.git/commit/?id=4d7338e121f14b696d66737fa0c2dc7a42287b38'/>
<id>4d7338e121f14b696d66737fa0c2dc7a42287b38</id>
<content type='text'>
Animations are run off the repaint cycle so if there's nothing to
repaint, an animation will stop running. This is usually not a problem
as each frame function of an animation causes something to change and
therefore a repaint to happen. This patch helps detect when the
animation isn't in said case and triggers a repaint to keep the
animation running.

This problem was found by using weston_move_scale_run() to move a view
onscreen from completely off. The very first time the animation frame
function was called the progress wasn't enough to move it into
view. The compositor saw there was nothing to repaint and stopped
doing anything else. When something else (like a pointer move) forced
a redraw, the view's position was very much onscreen and jumped into
view in an ugly way.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Animations are run off the repaint cycle so if there's nothing to
repaint, an animation will stop running. This is usually not a problem
as each frame function of an animation causes something to change and
therefore a repaint to happen. This patch helps detect when the
animation isn't in said case and triggers a repaint to keep the
animation running.

This problem was found by using weston_move_scale_run() to move a view
onscreen from completely off. The very first time the animation frame
function was called the progress wasn't enough to move it into
view. The compositor saw there was nothing to repaint and stopped
doing anything else. When something else (like a pointer move) forced
a redraw, the view's position was very much onscreen and jumped into
view in an ugly way.
</pre>
</div>
</content>
</entry>
<entry>
<title>exposay: fix crash when navigating with the keyboard</title>
<updated>2014-06-25T13:29:56+00:00</updated>
<author>
<name>Emilio Pozuelo Monfort</name>
<email>emilio.pozuelo@collabora.co.uk</email>
</author>
<published>2014-05-24T00:43:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/weston.git/commit/?id=5995d5ab3ba8abc4b8c7767c5b923aa7f0184153'/>
<id>5995d5ab3ba8abc4b8c7767c5b923aa7f0184153</id>
<content type='text'>
Commit a7592019 introduced an optimization that caused some
exposay struct members to not be properly initialized, particularly
cur_output, leading to crashes in some circumstances (e.g. pressing
the down arrow key after going to exposay).

Signed-off-by: Emilio Pozuelo Monfort &lt;emilio.pozuelo@collabora.co.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Commit a7592019 introduced an optimization that caused some
exposay struct members to not be properly initialized, particularly
cur_output, leading to crashes in some circumstances (e.g. pressing
the down arrow key after going to exposay).

Signed-off-by: Emilio Pozuelo Monfort &lt;emilio.pozuelo@collabora.co.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>animation: fix move scale animation</title>
<updated>2014-06-25T13:29:02+00:00</updated>
<author>
<name>Jonny Lamb</name>
<email>jonny.lamb@collabora.co.uk</email>
</author>
<published>2014-05-22T20:41:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/weston.git/commit/?id=4191e3979098deafde1757b922e5243454fbe4cb'/>
<id>4191e3979098deafde1757b922e5243454fbe4cb</id>
<content type='text'>
Both weston_move_scale_run() and weston_slide_run() were broken in
commit 3a869019. Commit a4a6f161 fixed and explained the problem for
weston_slide_run() but weston_move_scale_run() remained broken.

To fix weston_move_scale_run(), weston_view_animation_run() is also
required. It was removed when _run() was split into two functions
_create() and _run() in commit f5cc2b56, but _run() was not added in
this commit.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Both weston_move_scale_run() and weston_slide_run() were broken in
commit 3a869019. Commit a4a6f161 fixed and explained the problem for
weston_slide_run() but weston_move_scale_run() remained broken.

To fix weston_move_scale_run(), weston_view_animation_run() is also
required. It was removed when _run() was split into two functions
_create() and _run() in commit f5cc2b56, but _run() was not added in
this commit.
</pre>
</div>
</content>
</entry>
</feed>
