[weston PATCH 1/2] wscreensaver: Fix --demo mode.
Scott Moreau
oreaus at gmail.com
Wed Jul 11 19:57:14 PDT 2012
---
clients/wscreensaver.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/clients/wscreensaver.c b/clients/wscreensaver.c
index 2b0ea46..f1461f8 100644
--- a/clients/wscreensaver.c
+++ b/clients/wscreensaver.c
@@ -181,7 +181,11 @@ create_wscreensaver_instance(struct wscreensaver *screensaver,
if (!mi)
return NULL;
- mi->window = window_create_custom(screensaver->display);
+ if (demo_mode)
+ mi->window = window_create(screensaver->display);
+ else
+ mi->window = window_create_custom(screensaver->display);
+
if (!mi->window) {
fprintf(stderr, "%s: creating a window failed.\n", progname);
free(mi);
@@ -190,7 +194,7 @@ create_wscreensaver_instance(struct wscreensaver *screensaver,
window_set_title(mi->window, progname);
- if (screensaver->interface) {
+ if (screensaver->interface && !demo_mode) {
window_set_custom(mi->window);
mi->widget = window_add_widget(mi->window, mi);
screensaver_set_surface(screensaver->interface,
--
1.7.10.4
More information about the wayland-devel
mailing list