summaryrefslogtreecommitdiff
path: root/clients/smoke.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2010-12-17 09:53:12 -0500
committerKristian Høgsberg <krh@bitplanet.net>2010-12-17 09:53:12 -0500
commit82da52b15b49da3f3c7b4bd85d334ddfaa375ebc (patch)
treecd73456c727186ba121aa4a493d430f28bcebc1d /clients/smoke.c
parent53a7f2137b5aba32e97dbc3b964bdaf19a9099ef (diff)
downloadweston-82da52b15b49da3f3c7b4bd85d334ddfaa375ebc.tar.gz
weston-82da52b15b49da3f3c7b4bd85d334ddfaa375ebc.tar.bz2
weston-82da52b15b49da3f3c7b4bd85d334ddfaa375ebc.zip
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.
Diffstat (limited to 'clients/smoke.c')
-rw-r--r--clients/smoke.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/clients/smoke.c b/clients/smoke.c
index 43226adf..7052cb44 100644
--- a/clients/smoke.c
+++ b/clients/smoke.c
@@ -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);