diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-04-10 10:41:46 -0700 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2014-05-12 23:33:59 -0700 |
commit | ab2c10813766e3cd3f5228385eb4984565fb2f26 (patch) | |
tree | 0cffdb6233af7cce53489f742c0dab5fd6438bac /clients/simple-shm.c | |
parent | c815d62b8516044cc98b93e6f03e9123b20190a6 (diff) | |
download | weston-ab2c10813766e3cd3f5228385eb4984565fb2f26.tar.gz |
xdg-shell: Rework the state system
The states system, so far, has been a complicated mix of weird APIs
that solved a real race condition, but have been particularly ugly
for both compositors and clients to implement.
Diffstat (limited to 'clients/simple-shm.c')
-rw-r--r-- | clients/simple-shm.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/clients/simple-shm.c b/clients/simple-shm.c index 2087a0e6..d0cd7e39 100644 --- a/clients/simple-shm.c +++ b/clients/simple-shm.c @@ -117,16 +117,10 @@ create_shm_buffer(struct display *display, struct buffer *buffer, static void handle_configure(void *data, struct xdg_surface *surface, - int32_t width, int32_t height) -{ -} - -static void -handle_change_state(void *data, struct xdg_surface *xdg_surface, - uint32_t state, - uint32_t value, - uint32_t serial) + int32_t width, int32_t height, + struct wl_array *states, uint32_t serial) { + xdg_surface_ack_configure(surface, serial); } static void @@ -147,7 +141,6 @@ handle_delete(void *data, struct xdg_surface *xdg_surface) static const struct xdg_surface_listener xdg_surface_listener = { handle_configure, - handle_change_state, handle_activated, handle_deactivated, handle_delete, |