wayland: only save current mode of outputs
Other ones are not needed.
This commit is contained in:
1 parent
98b9d47482
commit
8bd5df3ac1
1 file changed
+2
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user