[vlc-commits] Wayland/shell: emit window size events
Rémi Denis-Courmont
git at videolan.org
Thu Oct 16 19:26:03 CEST 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Oct 12 15:42:36 2014 +0300| [b5087f21a148a2302ce9e50fa9dd87d8c1853b78] | committer: Rémi Denis-Courmont
Wayland/shell: emit window size events
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b5087f21a148a2302ce9e50fa9dd87d8c1853b78
---
modules/video_output/wayland/shell_surface.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/modules/video_output/wayland/shell_surface.c b/modules/video_output/wayland/shell_surface.c
index 0a5b42c..29fa0ef 100644
--- a/modules/video_output/wayland/shell_surface.c
+++ b/modules/video_output/wayland/shell_surface.c
@@ -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:
More information about the vlc-commits
mailing list