mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 00:37:59 +02:00
compositor: Damage after setting surface width and height
This commit is contained in:
parent
7c47667921
commit
cde9bfc805
1 changed files with 6 additions and 6 deletions
|
|
@ -856,12 +856,6 @@ surface_attach(struct wl_client *client,
|
|||
{
|
||||
struct wlsc_surface *es = (struct wlsc_surface *) surface;
|
||||
|
||||
/* FIXME: This damages the entire old surface, but we should
|
||||
* really just damage the part that's no longer covered by the
|
||||
* surface. Anything covered by the new surface will be
|
||||
* damaged by the client. */
|
||||
wlsc_surface_damage(es);
|
||||
|
||||
es->x += x;
|
||||
es->y += y;
|
||||
es->width = buffer->width;
|
||||
|
|
@ -873,6 +867,12 @@ surface_attach(struct wl_client *client,
|
|||
|
||||
wlsc_buffer_attach(buffer, surface);
|
||||
|
||||
/* FIXME: This damages the entire old surface, but we should
|
||||
* really just damage the part that's no longer covered by the
|
||||
* surface. Anything covered by the new surface will be
|
||||
* damaged by the client. */
|
||||
wlsc_surface_damage(es);
|
||||
|
||||
es->compositor->shell->attach(es->compositor->shell, es);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue