mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 05:25:58 +01:00
listeners: more safety around change
This commit is contained in:
parent
5f000306f5
commit
985764c8db
1 changed files with 3 additions and 0 deletions
|
@ -19,6 +19,9 @@ void Events::listener_change(wl_listener* listener, void* data) {
|
|||
// layout got changed, let's update monitors.
|
||||
const auto CONFIG = wlr_output_configuration_v1_create();
|
||||
|
||||
if (!CONFIG)
|
||||
return;
|
||||
|
||||
for (auto& m : g_pCompositor->m_vMonitors) {
|
||||
if (!m->output)
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue