mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-24 00:45:57 +01:00
avoid crash on monitor unplug
This commit is contained in:
parent
6e6c05bd46
commit
744d08af84
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ void Events::listener_monitorFrame(void* owner, void* data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Events::listener_monitorDestroy(void* owner, void* data) {
|
void Events::listener_monitorDestroy(void* owner, void* data) {
|
||||||
CMonitor* pMonitor = nullptr;
|
CMonitor* pMonitor = (CMonitor*)owner;
|
||||||
|
|
||||||
for (auto& m : g_pCompositor->m_vRealMonitors) {
|
for (auto& m : g_pCompositor->m_vRealMonitors) {
|
||||||
if (m->output == pMonitor->output) {
|
if (m->output == pMonitor->output) {
|
||||||
|
|
Loading…
Reference in a new issue