projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a010abf
)
compositor: Call wlsc_buffer_attach() after setting es->width
author
Kristian Høgsberg
<krh@bitplanet.net>
Fri, 13 May 2011 18:06:29 +0000
(14:06 -0400)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 16 May 2011 14:42:06 +0000
(10:42 -0400)
Otherwise we end up with a 0 pitch.
compositor/compositor.c
patch
|
blob
|
history
diff --git
a/compositor/compositor.c
b/compositor/compositor.c
index
6b83b26
..
00ffc91
100644
(file)
--- a/
compositor/compositor.c
+++ b/
compositor/compositor.c
@@
-860,8
+860,6
@@
surface_attach(struct wl_client *client,
* damaged by the client. */
wlsc_surface_damage(es);
- wlsc_buffer_attach(buffer, surface);
-
switch (es->map_type) {
case WLSC_SURFACE_MAP_FULLSCREEN:
es->x = (es->fullscreen_output->width - es->width) / 2;
@@
-877,6
+875,8
@@
surface_attach(struct wl_client *client,
if (x != 0 || y != 0)
wlsc_surface_assign_output(es);
+ wlsc_buffer_attach(buffer, surface);
+
es->compositor->shell->attach(es->compositor->shell, es);
}