projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b20b009
)
window: Don't check for subcompositor in window_add_subsurface()
author
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 15 Aug 2013 18:56:41 +0000
(11:56 -0700)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 15 Aug 2013 18:56:41 +0000
(11:56 -0700)
Client should check for subcompositor support up front. Now
window_add_surface() can never return NULL.
clients/window.c
patch
|
blob
|
history
diff --git
a/clients/window.c
b/clients/window.c
index
7223e37
..
d701889
100644
(file)
--- a/
clients/window.c
+++ b/
clients/window.c
@@
-4697,9
+4697,6
@@
window_add_subsurface(struct window *window, void *data,
struct wl_surface *parent;
struct wl_subcompositor *subcompo = window->display->subcompositor;
- if (!subcompo)
- return NULL;
-
surface = surface_create(window);
widget = widget_create(window, surface, data);
wl_list_init(&widget->link);