mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-05 13:29:50 -05:00
Update surface.attach and change surface.map to surface.map_toplevel
The new map_toplevel() request no longer specifies a position and takes the size from the attached buffer. The attach request now takes a position relative to the top-left corner of the old buffer to let clients specify the relative position of the new buffer.
This commit is contained in:
parent
53a7f2137b
commit
82da52b15b
13 changed files with 130 additions and 157 deletions
|
|
@ -277,8 +277,7 @@ int main(int argc, char *argv[])
|
|||
smoke.width = 200;
|
||||
smoke.height = 200;
|
||||
smoke.display = d;
|
||||
smoke.window = window_create(d, "smoke", smoke.x, smoke.y,
|
||||
smoke.width, smoke.height);
|
||||
smoke.window = window_create(d, "smoke", smoke.width, smoke.height);
|
||||
|
||||
window_set_buffer_type(smoke.window, WINDOW_BUFFER_TYPE_SHM);
|
||||
clock_gettime(CLOCK_MONOTONIC, &ts);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue