[PATCH] screenshooter: Add missing field initializers for wl_output_listener

Christopher Michael cpmichael at osg.samsung.com
Tue Jul 7 08:52:54 PDT 2015


This patch adds missing placeholders for the wl_output listener
functions 'done' and 'scale. Currently these placeholders are being
set to NULL as the done and scale callbacks are not used in the
screenshot client.

Signed-off-by: Chris Michael <cp.michael at samsung.com>
---
  clients/screenshot.c | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/clients/screenshot.c b/clients/screenshot.c
index f11e3ba..0d9b320 100644
--- a/clients/screenshot.c
+++ b/clients/screenshot.c
@@ -114,7 +114,9 @@ display_handle_mode(void *data,

  static const struct wl_output_listener output_listener = {
      display_handle_geometry,
-    display_handle_mode
+    display_handle_mode,
+    NULL,
+    NULL,
  };

  static void
-- 
2.4.4


More information about the wayland-devel mailing list