]> git.sesse.net Git - vlc/commitdiff
Wayland/shell: emit window size events
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 12 Oct 2014 12:42:36 +0000 (15:42 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 16 Oct 2014 17:23:38 +0000 (20:23 +0300)
modules/video_output/wayland/shell_surface.c

index 0a5b42cbd797f26cee5f305b22976beb8c646786..29fa0ef7552a52ed0399334a926960d93f08d184 100644 (file)
@@ -96,8 +96,13 @@ static int Control(vout_window_t *wnd, int cmd, va_list ap)
         case VOUT_WINDOW_SET_STATE:
             return VLC_EGENERIC;
         case VOUT_WINDOW_SET_SIZE:
-            assert(0);
+        {
+            unsigned width = va_arg (ap, unsigned);
+            unsigned height = va_arg (ap, unsigned);
+
+            vout_window_ReportSize(wnd, width, height);
             break;
+        }
         case VOUT_WINDOW_SET_FULLSCREEN:
         {
             bool fs = va_arg(ap, int);
@@ -264,7 +269,8 @@ static int Open(vout_window_t *wnd, const vout_window_cfg_t *cfg)
     wnd->handle.wl = surface;
     wnd->display.wl = display;
     wnd->control = Control;
-    (void) cfg;
+
+    vout_window_ReportSize(wnd, cfg->width, cfg->height);
     return VLC_SUCCESS;
 
 error: