mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-09-11 13:25:42 +03:00
nullcheck for monitor in updateAllOutputs
This commit is contained in:
parent
b2ba6f17a2
commit
008024c9af
@ -131,6 +131,10 @@ void CXDGOutputProtocol::updateOutputDetails(SXDGOutput* pOutput) {
|
|||||||
|
|
||||||
void CXDGOutputProtocol::updateAllOutputs() {
|
void CXDGOutputProtocol::updateAllOutputs() {
|
||||||
for (auto& o : m_vXDGOutputs) {
|
for (auto& o : m_vXDGOutputs) {
|
||||||
|
|
||||||
|
if (!o->monitor)
|
||||||
|
continue;
|
||||||
|
|
||||||
updateOutputDetails(o.get());
|
updateOutputDetails(o.get());
|
||||||
|
|
||||||
wlr_output_schedule_done(o->monitor->output);
|
wlr_output_schedule_done(o->monitor->output);
|
||||||
|
Loading…
Reference in New Issue
Block a user