projects
/
profile
/
ivi
/
weston-ivi-shell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47b5dca
)
shell: Emit destroy signal for when we manually destroy shell surface
author
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 7 Jun 2012 22:08:47 +0000
(18:08 -0400)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 7 Jun 2012 22:08:47 +0000
(18:08 -0400)
src/shell.c
patch
|
blob
|
history
diff --git
a/src/shell.c
b/src/shell.c
index
8eb9819
..
25a9677
100644
(file)
--- a/
src/shell.c
+++ b/
src/shell.c
@@
-1283,11
+1283,13
@@
shell_handle_surface_destroy(struct wl_listener *listener, void *data)
struct shell_surface,
surface_destroy_listener);
- /* tricky way to check if resource was in fact created */
- if (shsurf->resource.object.implementation != 0)
+ if (shsurf->resource.client) {
wl_resource_destroy(&shsurf->resource);
- else
+ } else {
+ wl_signal_emit(&shsurf->resource.destroy_signal,
+ &shsurf->resource);
destroy_shell_surface(shsurf);
+ }
}
static struct shell_surface *