wayland: only save current mode of outputs

Other ones are not needed.
This commit is contained in:
Alexander Preisinger committed 2014-09-03 21:35:26 +02:00
1 parent 98b9d47482
commit 8bd5df3ac1
1 file changed
+2 -1
+2 -1
View File
@@ -177,7 +177,8 @@ static void output_handle_mode(void *data,
{
struct vo_wayland_output *output = data;
if (!output)
// only save current mode
if (!output || !(flags & WL_OUTPUT_MODE_CURRENT))
return;
output->width = width;