Commit 90e2d2ba authored by Xaver Hugl's avatar Xaver Hugl
Browse files

outputconfigurationinterface: don't crash if mode is invalid

When the client issues the request, the compositor may have already destroyed
the mode object.
BUG: 453042
FIXED-IN: 5.24.5
parent dc09ce85
Pipeline #169839 passed with stage
in 5 minutes and 27 seconds
......@@ -64,6 +64,9 @@ void OutputConfigurationV2InterfacePrivate::kde_output_configuration_v2_mode(Res
Q_UNUSED(resource)
OutputDeviceV2Interface *output = OutputDeviceV2Interface::get(outputdevice);
OutputDeviceModeV2Interface *mode = OutputDeviceModeV2Interface::get(modeResource);
if (!mode) {
return;
}
pendingChanges(output)->d->size = mode->size();
pendingChanges(output)->d->refreshRate = mode->refreshRate();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment