[PATCH 3/3] shell: Add wl_output name event

Quanxian Wang quanxian.wang at intel.com
Sun Mar 16 20:34:52 PDT 2014


Signed-off-by: Quanxian Wang <quanxian.wang at intel.com>
---
 clients/desktop-shell.c | 10 +++++++++-
 clients/window.c        | 10 +++++++++-
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c
index a0c6b6d..cefe936 100644
--- a/clients/desktop-shell.c
+++ b/clients/desktop-shell.c
@@ -1172,6 +1172,13 @@ output_handle_mode(void *data,
 }
 
 static void
+output_handle_name(void *data,
+		   struct wl_output *wl_output,
+		   const char *name)
+{
+}
+
+static void
 output_handle_done(void *data,
                    struct wl_output *wl_output)
 {
@@ -1192,7 +1199,8 @@ static const struct wl_output_listener output_listener = {
 	output_handle_geometry,
 	output_handle_mode,
 	output_handle_done,
-	output_handle_scale
+	output_handle_scale,
+	output_handle_name
 };
 
 static void
diff --git a/clients/window.c b/clients/window.c
index 3136a7d..4946b7a 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -4714,11 +4714,19 @@ display_handle_mode(void *data,
 	}
 }
 
+static void
+display_handle_name(void *data,
+		    struct wl_output *wl_output,
+		    const char *name)
+{
+}
+
 static const struct wl_output_listener output_listener = {
 	display_handle_geometry,
 	display_handle_mode,
 	display_handle_done,
-	display_handle_scale
+	display_handle_scale,
+	display_handle_name
 };
 
 static void
-- 
1.8.1.2



More information about the wayland-devel mailing list